/** * Bootstrap application */ public function bootstrap($modules) { // set modules definitions and register them $this->module->__invoke($modules)->each()->register($this); // run application.bootstrap event $this->event->run(\Fine\Event\Event::newInstance()->id('application.bootstrap')); }
public function onHttpkernelDispatchController(Event $event) { $event->setResponse($event->getController()->dispatch($event->getRequest(), $event->getResponse())); }