diff --git a/Controller/Component/FusionChartsComponent.php b/Controller/Component/FusionChartsComponent.php index 05c4dda..d5c9657 100755 --- a/Controller/Component/FusionChartsComponent.php +++ b/Controller/Component/FusionChartsComponent.php @@ -37,7 +37,7 @@ public function __construct(ComponentCollection $collection, $settings = array() $this->settings = $settings; } - public function initialize($controller) + public function initialize(Controller $controller) { $_settings = $this->defaultSettings; @@ -51,7 +51,7 @@ public function initialize($controller) App::import('Vendor', 'FusionCharts.FusionCharts', true, array(), 'FusionCharts_Gen.php'); } - public function beforeRender($controller) + public function beforeRender(Controller $controller) { $this->Session->write('FusionChartsPlugin.Charts', $this->charts); }