Exemple #1
0
 /**
  * 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'));
 }
Exemple #2
0
 public function onHttpkernelDispatchController(Event $event)
 {
     $event->setResponse($event->getController()->dispatch($event->getRequest(), $event->getResponse()));
 }