Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39a56d3

Browse files
minor #52023 [FrameworkBundle] Fix merge error with ErrorLoggerCompilerPass (PhilETaylor)
This PR was merged into the 6.3 branch. Discussion ---------- [FrameworkBundle] Fix merge error with `ErrorLoggerCompilerPass` | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT `@nicolas`-grekas `@MatTheCat` does this make sense? If I change these 2 lines in 6.4 then my app loads fine. relates to #52009 (comment) This comment from `@HypeMC` #52009 (comment) guided my debugging or am I barking up the wrong tree? Commits ------- 0d418de Fix merge error with ErrorLoggerCompilerPass
2 parents f36e4ab + 0d418de commit 39a56d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ErrorLoggerCompilerPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class ErrorLoggerCompilerPass implements CompilerPassInterface
2222
{
2323
public function process(ContainerBuilder $container): void
2424
{
25-
if (!$container->hasDefinition('debug.debug_handlers_listener')) {
25+
if (!$container->hasDefinition('debug.error_handler_configurator')) {
2626
return;
2727
}
2828

29-
$definition = $container->getDefinition('debug.debug_handlers_listener');
29+
$definition = $container->getDefinition('debug.error_handler_configurator');
3030
if ($container->hasDefinition('monolog.logger.php')) {
3131
$definition->replaceArgument(0, new Reference('monolog.logger.php'));
3232
}

0 commit comments

Comments
 (0)