display() public method

Sends the output of the app to our browser, in the form of a Response object.
public display ( ) : Symfony\Component\HttpFoundation\Response
return Symfony\Component\HttpFoundation\Response
示例#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();
     }
 }