/**
  * @return Nette\Application\Application
  */
 public function createServiceApplication__application()
 {
     $service = new Nette\Application\Application($this->getService('application.presenterFactory'), $this->getService('routing.router'), $this->getService('http.request'), $this->getService('http.response'));
     $service->catchExceptions = TRUE;
     $service->errorPresenter = 'Error';
     Nette\Bridges\ApplicationTracy\RoutingPanel::initializePanel($service);
     return $service;
 }
 /**
  * @return Nette\Application\Application
  */
 public function createServiceApplication()
 {
     $service = new Nette\Application\Application($this->getService('nette.presenterFactory'), $this->getService('router'), $this->getService('httpRequest'), $this->getService('httpResponse'));
     $service->catchExceptions = FALSE;
     $service->errorPresenter = 'Error';
     Nette\Bridges\ApplicationTracy\RoutingPanel::initializePanel($service);
     Tracy\Debugger::getBar()->addPanel(new Nette\Bridges\ApplicationTracy\RoutingPanel($this->getService('router'), $this->getService('httpRequest'), $this->getService('nette.presenterFactory')));
     return $service;
 }
 /**
  * @return Nette\Application\Application
  */
 public function createServiceApplication()
 {
     $service = new Nette\Application\Application($this->getService('nette.presenterFactory'), $this->getService('router'), $this->getService('httpRequest'), $this->getService('httpResponse'));
     $service->catchExceptions = FALSE;
     $service->errorPresenter = 'Public:Error';
     Nette\Bridges\ApplicationTracy\RoutingPanel::initializePanel($service);
     $service->onRequest[] = array($this->getService('translation.userLocaleResolver.param'), 'onRequest');
     $self = $this;
     $service->onStartup[] = function () use($self) {
         $self->getService('translation.default');
     };
     $service->onRequest[] = array($this->getService('translation.panel'), 'onRequest');
     $service->onStartup = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onStartup'), $service->onStartup);
     $service->onShutdown = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onShutdown'), $service->onShutdown);
     $service->onRequest = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onRequest'), $service->onRequest);
     $service->onPresenter = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onPresenter'), $service->onPresenter);
     $service->onResponse = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onResponse'), $service->onResponse);
     $service->onError = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onError'), $service->onError);
     return $service;
 }
 /**
  * @return Nette\Application\Application
  */
 public function createServiceApplication__application()
 {
     $service = new Nette\Application\Application($this->getService('application.presenterFactory'), $this->getService('routing.router'), $this->getService('http.request'), $this->getService('http.response'));
     $service->catchExceptions = TRUE;
     $service->errorPresenter = 'Error';
     Nette\Bridges\ApplicationTracy\RoutingPanel::initializePanel($service);
     $self = $this;
     $service->onError[] = function ($app, $e) use($self) {
         $app->errorPresenter = FALSE;
         $app->onShutdown[] = function () {
             exit(254);
         };
         $self->getService('console.application')->handleException($e);
     };
     $service->onStartup = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onStartup'), $service->onStartup, NULL, FALSE);
     $service->onShutdown = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onShutdown'), $service->onShutdown, NULL, FALSE);
     $service->onRequest = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onRequest'), $service->onRequest, NULL, FALSE);
     $service->onPresenter = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onPresenter'), $service->onPresenter, NULL, FALSE);
     $service->onResponse = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onResponse'), $service->onResponse, NULL, FALSE);
     $service->onError = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onError'), $service->onError, NULL, FALSE);
     return $service;
 }
 /**
  * @return Nette\Application\Application
  */
 public function createServiceApplication__application()
 {
     $service = new Nette\Application\Application($this->getService('application.presenterFactory'), $this->getService('routing.router'), $this->getService('http.request'), $this->getService('http.response'));
     $service->catchExceptions = FALSE;
     $service->errorPresenter = 'Error';
     Nette\Bridges\ApplicationTracy\RoutingPanel::initializePanel($service);
     $this->getService('tracy.bar')->addPanel(new Nette\Bridges\ApplicationTracy\RoutingPanel($this->getService('routing.router'), $this->getService('http.request'), $this->getService('application.presenterFactory')));
     $service->onStartup = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onStartup'), $service->onStartup, NULL, FALSE);
     $service->onShutdown = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onShutdown'), $service->onShutdown, NULL, FALSE);
     $service->onRequest = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onRequest'), $service->onRequest, NULL, FALSE);
     $service->onPresenter = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onPresenter'), $service->onPresenter, NULL, FALSE);
     $service->onResponse = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onResponse'), $service->onResponse, NULL, FALSE);
     $service->onError = $this->getService('events.manager')->createEvent(array('Nette\\Application\\Application', 'onError'), $service->onError, NULL, FALSE);
     return $service;
 }