public function run($uri = '') { $this->bootstrap->registerAutoload(); $this->bootstrap->registerService(); if ($this->getConfig()['app']['debug']) { $this->getDI('error_handler'); } //$this->setupEventManager(); return $this->handle($uri)->getContent(); }
/** * Get the command collection and add to parent class. * * @return Application */ public function resolveCommands() { $this->bootstrap->registerAutoload(); // we must register first the services before add events listener to DI. $this->bootstrap->registerService(); $this->setupEventManager(); $this->commands = $this->config['command']; foreach ($this->commands as $command) { if (class_exists($command)) { $this->resolve($command); } } return $this; }