/** * @return boolean */ public function handle(Event\Type\Http\Request $event) { if (!parent::matchRequest($event->getRequest())) { $this->invalidateActions(); return false; } foreach ($this->getApplication()->getValidActions() as $action) { // Skip actions which do not belong to the package if (!$action instanceof AbstractAction) { continue; } if ($action->matchRequest($event->getRequest())) { $this->action = $action; $this->controller = $this->getFactory()->createControllerByAction($action); $this->frontController = $this->getFactory()->createFrontControllerByAction($action); return true; } } $this->triggerResponse404($event, Event\Type\Http\Response404::create()); }
/** * @return void */ public function init() { parent::init(); }