/** * 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; }
public function bootstrap(ModuleManager $moduleManager, ApplicationInterface $app) { $em = $app->getEventManager()->getSharedManager(); $sm = $app->getServiceManager(); }
/** * @param ApplicationInterface $application */ private function runApplication(ApplicationInterface $application) { $application->run(); }