[FrameworkBundle] fix debug:event-dispatcher and debug:firewall

This commit is contained in:
Nicolas Grekas 2021-05-10 18:13:17 +02:00
parent 8ef49cf3b3
commit 83cd55269c
4 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ return static function (ContainerConfigurator $container) {
->set('console.command.event_dispatcher_debug', EventDispatcherDebugCommand::class)
->args([
tagged_locator('event_dispatcher.dispatcher'),
tagged_locator('event_dispatcher.dispatcher', 'name'),
])
->tag('console.command')

View File

@ -69,7 +69,7 @@ return static function (ContainerConfigurator $container) {
->set('event_dispatcher', EventDispatcher::class)
->public()
->tag('container.hot_path')
->tag('event_dispatcher.dispatcher')
->tag('event_dispatcher.dispatcher', ['name' => 'event_dispatcher'])
->alias(EventDispatcherInterfaceComponentAlias::class, 'event_dispatcher')
->alias(EventDispatcherInterface::class, 'event_dispatcher')

View File

@ -385,7 +385,7 @@ class SecurityExtension extends Extension implements PrependExtensionInterface
// 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 = [];

View File

@ -19,7 +19,7 @@ return static function (ContainerConfigurator $container) {
->args([
param('security.firewalls'),
service('security.firewall.context_locator'),
tagged_locator('event_dispatcher.dispatcher'),
tagged_locator('event_dispatcher.dispatcher', 'name'),
[],
false,
])