[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) ->set('console.command.event_dispatcher_debug', EventDispatcherDebugCommand::class)
->args([ ->args([
tagged_locator('event_dispatcher.dispatcher'), tagged_locator('event_dispatcher.dispatcher', 'name'),
]) ])
->tag('console.command') ->tag('console.command')

View File

@ -69,7 +69,7 @@ return static function (ContainerConfigurator $container) {
->set('event_dispatcher', EventDispatcher::class) ->set('event_dispatcher', EventDispatcher::class)
->public() ->public()
->tag('container.hot_path') ->tag('container.hot_path')
->tag('event_dispatcher.dispatcher') ->tag('event_dispatcher.dispatcher', ['name' => 'event_dispatcher'])
->alias(EventDispatcherInterfaceComponentAlias::class, 'event_dispatcher') ->alias(EventDispatcherInterfaceComponentAlias::class, 'event_dispatcher')
->alias(EventDispatcherInterface::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 // Register Firewall-specific event dispatcher
$firewallEventDispatcherId = 'security.event_dispatcher.'.$id; $firewallEventDispatcherId = 'security.event_dispatcher.'.$id;
$container->register($firewallEventDispatcherId, EventDispatcher::class) $container->register($firewallEventDispatcherId, EventDispatcher::class)
->addTag('event_dispatcher.dispatcher'); ->addTag('event_dispatcher.dispatcher', ['name' => $firewallEventDispatcherId]);
// Register listeners // Register listeners
$listeners = []; $listeners = [];

View File

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