Skip to content

Commit

Permalink
Set monolog channel to "event" for traceable firewall event dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
danielburger1337 committed Feb 22, 2024
1 parent 8a9d247 commit 575b929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -51,6 +51,7 @@ public function process(ContainerBuilder $container): void
new Reference('logger', ContainerInterface::NULL_ON_INVALID_REFERENCE),
new Reference('request_stack', ContainerInterface::NULL_ON_INVALID_REFERENCE),
])
->addTag('monolog.logger', ['channel' => 'event'])
->addTag('kernel.reset', ['method' => 'reset']);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/SecurityBundle/SecurityBundle.php
Expand Up @@ -104,6 +104,6 @@ public function build(ContainerBuilder $container): void
)));

// must be registered before DecoratorServicePass
$container->addCompilerPass(new MakeFirewallsEventDispatcherTraceablePass(), PassConfig::TYPE_OPTIMIZE, 10);
$container->addCompilerPass(new MakeFirewallsEventDispatcherTraceablePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 10);
}
}

0 comments on commit 575b929

Please sign in to comment.