From cf7b2c313f75df77ffd22a1a4623844dbf93da24 Mon Sep 17 00:00:00 2001 From: Chris Gmyr Date: Wed, 22 Oct 2014 10:56:30 -0400 Subject: [PATCH] added type hinted Controller for CakePHP v2.x --- Controller/Component/FusionChartsComponent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }