File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 35
35
use Symfony \Component \Cache \DependencyInjection \CachePoolPrunerPass ;
36
36
use Symfony \Component \Config \Resource \ClassExistenceResource ;
37
37
use Symfony \Component \Console \DependencyInjection \AddConsoleCommandPass ;
38
+ use Symfony \Component \Debug \ErrorHandler as LegacyErrorHandler ;
38
39
use Symfony \Component \DependencyInjection \Compiler \PassConfig ;
39
40
use Symfony \Component \DependencyInjection \Compiler \RegisterReverseContainerPass ;
40
41
use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -89,6 +90,9 @@ class FrameworkBundle extends Bundle
89
90
public function boot ()
90
91
{
91
92
ErrorHandler::register (null , false )->throwAt ($ this ->container ->getParameter ('debug.error_handler.throw_at ' ), true );
93
+ if (class_exists (LegacyErrorHandler::class, false )) {
94
+ LegacyErrorHandler::register (null , false )->throwAt ($ this ->container ->getParameter ('debug.error_handler.throw_at ' ), true );
95
+ }
92
96
93
97
if ($ this ->container ->getParameter ('kernel.http_method_override ' )) {
94
98
Request::enableHttpMethodParameterOverride ();
You can’t perform that action at this time.
0 commit comments