* weaverryan/prevent_exception_on_handle_exception: [HttpKernel] Wrapping the end of handleException() in a try-catch to prevent response listeners from throwing another exception
@@ -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)