10000 bug #33752 [4.4] Fix some leftovers (nicolas-grekas) · dunglas/symfony@2b71c6f · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b71c6f

Browse files
bug symfony#33752 [4.4] Fix some leftovers (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [4.4] Fix some leftovers | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | symfony#33756 | License | MIT | Doc PR | - Found while running console commands with the Symfony Demo. Commits ------- b416c12 [4.4] Fix some leftovers
2 parents 5440d67 + b416c12 commit 2b71c6f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Symfony/Bundle/DebugBundle/Resources/config/services.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<argument type="collection">
9797
<argument type="service" key="cli">
9898
<service class="Symfony\Component\VarDumper\Command\Descriptor\CliDescriptor">
99-
<argument type="service" id="var_dumper.cli_dumper" />
99+
<argument type="service" id="var_dumper.contextualized_cli_dumper.inner" />
100100
</service>
101101
</argument>
102102
<argument type="service" key="html">

src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ public function configure(Event $event = null)
125125
if ($output instanceof ConsoleOutputInterface) {
126126
$output = $output->getErrorOutput();
127127
}
128-
$this->exceptionHandler = function ($e) use ($app, $output) {
128+
$this->exceptionHandler = static function (\Throwable $e) use ($app, $output) {
129+
if (!$e instanceof \Exception) {
130+
$e = new FatalThrowableError($e);
131+
}
132+
129133
$app->renderException($e, $output);
130134
};
131135
}

0 commit comments

Comments
 (0)
0