getResponse()); } $e = $e->getPrevious(); } } /** * Constructs an enforced response. * * Use EnforcedResponse::createFromException() instead. * * @param \Symfony\Component\HttpFoundation\Response $response * The response to wrap. */ public function __construct(Response $response) { parent::__construct('', 500); $this->response = $response; } /** * Returns the wrapped response. * * @return \Symfony\Component\HttpFoundation\Response * The wrapped response. */ public function getResponse() { return $this->response; } }