/** * 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')); }