File tree 1 file changed +7
-1
lines changed
src/Symfony/Bundle/FrameworkBundle
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,13 @@ public function boot()
98
98
$ _ENV ['DOCTRINE_DEPRECATIONS ' ] = $ _SERVER ['DOCTRINE_DEPRECATIONS ' ] ??= 'trigger ' ;
99
99
100
100
$ handler = ErrorHandler::register (null , false );
101
- $ this ->container ->get ('debug.error_handler_configurator ' )->configure ($ handler );
101
+
102
+ // When upgrading an existing Symfony application from 6.2 to 6.3, and
103
+ // the cache is warmed up, the service is not available yet, so we need
104
+ // to check if it exists.
105
+ if ($ this ->container ->has ('debug.error_handler_configurator ' )) {
106
+ $ this ->container ->get ('debug.error_handler_configurator ' )->configure ($ handler );
107
+ }
102
108
103
109
if ($ this ->container ->getParameter ('kernel.http_method_override ' )) {
104
110
Request::enableHttpMethodParameterOverride ();
You can’t perform that action at this time.
0 commit comments