diff --git a/DependencyInjection/SecurityExtension.php b/DependencyInjection/SecurityExtension.php index a2cd2d13..1d9a2a66 100644 --- a/DependencyInjection/SecurityExtension.php +++ b/DependencyInjection/SecurityExtension.php @@ -385,7 +385,7 @@ private function createFirewall(ContainerBuilder $container, string $id, array $ // Register Firewall-specific event dispatcher $firewallEventDispatcherId = 'security.event_dispatcher.'.$id; $container->register($firewallEventDispatcherId, EventDispatcher::class) - ->addTag('event_dispatcher.dispatcher'); + ->addTag('event_dispatcher.dispatcher', ['name' => $firewallEventDispatcherId]); // Register listeners $listeners = []; diff --git a/Resources/config/debug_console.php b/Resources/config/debug_console.php index 242722f7..74fa4349 100644 --- a/Resources/config/debug_console.php +++ b/Resources/config/debug_console.php @@ -19,7 +19,7 @@ ->args([ param('security.firewalls'), service('security.firewall.context_locator'), - tagged_locator('event_dispatcher.dispatcher'), + tagged_locator('event_dispatcher.dispatcher', 'name'), [], false, ])