[HttpKernel] Wrapping the end of handleException() in a try-catch to prevent response listeners from throwing another exception

This commit is contained in:
Ryan Weaver 2011-04-01 09:10:41 -05:00
parent 54655104ca
commit 083b25b68c

View File

@ -171,7 +171,11 @@ class HttpKernel implements HttpKernelInterface
throw $e;
}
return $this->filterResponse($event->getResponse(), $request, $type);
try {
return $this->filterResponse($event->getResponse(), $request, $type);
} catch (\Exception $e) {
return $event->getResponse();
}
}
private function varToString($var)