* @copyright Copyright (c) 2013 - 2019, TechFuze. (http://techfuze.net) */ class ControllerGetEvent extends Event { /** * The directories the controller can get loaded from. * * @var array */ public $controllerPaths = array(); /** * The name of the controller to be loaded. * * @var string|null */ public $controllerName = null; /** * The namespace of the controller to be loaded. Defaults to Application\Controller * * @var string */ public $namespace = '\Application\Controller\\'; /** * Arguments provided to the constructor * * @var array */ public $arguments = []; public function init($controllerName, $controllerPaths, $namespace, $arguments) { $this->controllerName = $controllerName; $this->controllerPaths = $controllerPaths; $this->namespace = $namespace; $this->arguments = $arguments; } }