示例#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();
     }
 }