protected function initializeController() { parent::initializeController(); $this->registerCommand(AppFacade::STARTUP, 'StartupCommand'); $this->registerCommand(AppFacade::DELETE_USER, 'DeleteUserCommand'); $this->registerCommand(AppFacade::ADD_ROLE_RESULT, 'AddRoleResultCommand'); }
protected function initializeController() { if (self::$shouldCallParentAndEcho) { parent::initializeController(); echo 'Controller' . PHP_EOL; } if (is_null($this->controller)) { $this->controller = MyController::getInstance(); } }
/** * Initializes the controller and gives you an opportunity to register application * specific commands that extend SimpleCommand or MacroCommand with the PureMVC framework. */ protected function initializeController() { parent::initializeController(); $this->registerCommand(ApplicationFacade::START_APPLICATION, 'StartApplicationCommand'); }