Skip to content

Commit 572af4d

Browse files
[HttpKernel] Add request attribute _handle_all_throwables to allow HttpKernel to handle thrown Error in addition to Exception
1 parent 5147f5e commit 572af4d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Tests/Functional/WebProfilerBundleKernel.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Psr\Log\NullLogger;
1515
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
1616
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
17-
use Symfony\Bundle\FrameworkBundle\Test\ExceptionSubscriber;
1817
use Symfony\Bundle\TwigBundle\TwigBundle;
1918
use Symfony\Bundle\WebProfilerBundle\WebProfilerBundle;
2019
use Symfony\Component\Config\Loader\LoaderInterface;
@@ -59,11 +58,6 @@ protected function configureContainer(ContainerBuilder $containerBuilder, Loader
5958
'router' => ['utf8' => true],
6059
];
6160

62-
// If Symfony >= 6.2
63-
if (class_exists(ExceptionSubscriber::class)) {
64-
$config['catch_all_throwables'] = true;
65-
}
66-
6761
$containerBuilder->loadFromExtension('framework', $config);
6862

6963
$containerBuilder->loadFromExtension('web_profiler', [

0 commit comments

Comments
 (0)