From 22223acf1d52e12c759d320459cfbfd108d5f73d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 28 Jun 2017 09:51:28 +0200 Subject: [PATCH] Controllers: Make all private properties protected Controllers are neither library stuff nor any vital part that need to be protected from too adventurous module developers. --- library/Icinga/Web/Controller/ActionController.php | 14 +++++++------- .../Web/Controller/ModuleActionController.php | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index c8675f51f..ce252980b 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -63,17 +63,17 @@ class ActionController extends Zend_Controller_Action * * @var string */ - private $moduleName; + protected $moduleName; - private $autorefreshInterval; + protected $autorefreshInterval; - private $reloadCss = false; + protected $reloadCss = false; - private $window; + protected $window; - private $rerenderLayout = false; + protected $rerenderLayout = false; - private $xhrLayout = 'inline'; + protected $xhrLayout = 'inline'; /** * The inner layout (inside the body) to use @@ -87,7 +87,7 @@ class ActionController extends Zend_Controller_Action * * @var Auth|null */ - private $auth; + protected $auth; /** * URL parameters diff --git a/library/Icinga/Web/Controller/ModuleActionController.php b/library/Icinga/Web/Controller/ModuleActionController.php index 2cb5f62bc..ad6626400 100644 --- a/library/Icinga/Web/Controller/ModuleActionController.php +++ b/library/Icinga/Web/Controller/ModuleActionController.php @@ -13,11 +13,11 @@ use Icinga\Application\Modules\Module; */ class ModuleActionController extends ActionController { - private $config; + protected $config; - private $configs = array(); + protected $configs = array(); - private $module; + protected $module; /** * (non-PHPDoc)