app/routing.php uses these methods to kickstart and send the output of the app to the browser.
Beispiel #1
0
 /**
  * Runs an application and returns the Response
  *
  * @param \ApplicationInterface $application
  *
  * @return Symfony\Component\HttpFoundation\Response
  */
 protected function handleApplication(\ApplicationInterface $application)
 {
     $application->passContainerToModels();
     try {
         $application->initialize();
         return $application->display();
     } catch (RedirectException $ex) {
         return $ex->getResponse();
     }
 }
 public function registerApplication(ApplicationInterface $application)
 {
     $this->applications[$application->getId()] = $application;
 }
Beispiel #3
0
 public function bootstrap(ModuleManager $moduleManager, ApplicationInterface $app)
 {
     $em = $app->getEventManager()->getSharedManager();
     $sm = $app->getServiceManager();
 }
Beispiel #4
0
 /**
  * @param ApplicationInterface $application
  */
 private function runApplication(ApplicationInterface $application)
 {
     $application->run();
 }