setDI($di); } public function run() { $app = new Application($this->getDI()); // Force autoloader if registered. // Should be needed by almost all other services. $di = $this->getDI(); if ($di->has('loader')) { $di->get('loader'); } return $app->handle()->getContent(); } }