cleanup from last commit

This commit is contained in:
Luke Towers 2019-11-07 12:03:10 -06:00
parent d56dded458
commit 07ac19f7b3
2 changed files with 11 additions and 2 deletions

View File

@ -50,6 +50,13 @@ class BackendController extends ControllerBase
*/ */
protected $cmsHandling = false; protected $cmsHandling = false;
/**
* Stores the requested controller so that the constructor is only run once
*
* @var Backend\Classes\Controller
*/
protected $requestedController;
/** /**
* Instantiate a new BackendController instance. * Instantiate a new BackendController instance.
*/ */

View File

@ -150,8 +150,6 @@ class Controller extends ControllerBase
*/ */
$this->user = BackendAuth::getUser(); $this->user = BackendAuth::getUser();
parent::__construct();
/* /*
* Media Manager widget is available on all back-end pages * Media Manager widget is available on all back-end pages
*/ */
@ -170,18 +168,22 @@ class Controller extends ControllerBase
{ {
self::extendableExtendCallback($callback); self::extendableExtendCallback($callback);
} }
public function __get($name) public function __get($name)
{ {
return $this->extendableGet($name); return $this->extendableGet($name);
} }
public function __set($name, $value) public function __set($name, $value)
{ {
$this->extendableSet($name, $value); $this->extendableSet($name, $value);
} }
public function __call($name, $params) public function __call($name, $params)
{ {
return $this->extendableCall($name, $params); return $this->extendableCall($name, $params);
} }
public static function __callStatic($name, $params) public static function __callStatic($name, $params)
{ {
return self::extendableCallStatic($name, $params); return self::extendableCallStatic($name, $params);