From b416c12d29ba9ac7d70ddfa6ce44499057922978 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 29 Sep 2019 14:13:01 +0200 Subject: [PATCH] [4.4] Fix some leftovers --- .../Bundle/DebugBundle/Resources/config/services.xml | 2 +- .../HttpKernel/EventListener/DebugHandlersListener.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/DebugBundle/Resources/config/services.xml b/src/Symfony/Bundle/DebugBundle/Resources/config/services.xml index 9cb70d08cc4bc..49772b46962f7 100644 --- a/src/Symfony/Bundle/DebugBundle/Resources/config/services.xml +++ b/src/Symfony/Bundle/DebugBundle/Resources/config/services.xml @@ -96,7 +96,7 @@ - + diff --git a/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php b/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php index 841c772c3286a..03885a46b8645 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php @@ -125,7 +125,11 @@ public function configure(Event $event = null) if ($output instanceof ConsoleOutputInterface) { $output = $output->getErrorOutput(); } - $this->exceptionHandler = function ($e) use ($app, $output) { + $this->exceptionHandler = static function (\Throwable $e) use ($app, $output) { + if (!$e instanceof \Exception) { + $e = new FatalThrowableError($e); + } + $app->renderException($e, $output); }; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy