8000 [FrameworkBundle] ease migration to symfony 6.3 by lyrixx · Pull Request #50498 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] ease migration to symfony 6.3 #50498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ public function boot()
$_ENV['DOCTRINE_DEPRECATIONS'] = $_SERVER['DOCTRINE_DEPRECATIONS'] ??= 'trigger';

$handler = ErrorHandler::register(null, false);
$this->container->get('debug.error_handler_configurator')->configure($handler);

// When upgrading an existing Symfony application from 6.2 to 6.3, and
// the cache is warmed up, the service is not available yet, so we need
// to check if it exists.
if ($this->container->has('debug.error_handler_configurator')) {
$this->container->get('debug.error_handler_configurator')->configure($handler);
}

if ($this->container->getParameter('kernel.http_method_override')) {
Request::enableHttpMethodParameterOverride();
Expand Down
0