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 3535use Symfony \Component \Cache \DependencyInjection \CachePoolPrunerPass ;
3636use Symfony \Component \Config \Resource \ClassExistenceResource ;
3737use Symfony \Component \Console \DependencyInjection \AddConsoleCommandPass ;
38+ use Symfony \Component \Debug \ErrorHandler as LegacyErrorHandler ;
3839use Symfony \Component \DependencyInjection \Compiler \PassConfig ;
3940use Symfony \Component \DependencyInjection \Compiler \RegisterReverseContainerPass ;
4041use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -89,6 +90,9 @@ class FrameworkBundle extends Bundle
8990 public function boot ()
9091 {
9192 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+ }
9296
9397 if ($ this ->container ->getParameter ('kernel.http_method_override ' )) {
9498 Request::enableHttpMethodParameterOverride ();
You can’t perform that action at this time.
0 commit comments