Skip to content

Commit 83cd552

Browse files
[FrameworkBundle] fix debug:event-dispatcher and debug:firewall
1 parent 8ef49cf commit 83cd552

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/console.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131

132132
->set('console.command.event_dispatcher_debug', EventDispatcherDebugCommand::class)
133133
->args([
134-
tagged_locator('event_dispatcher.dispatcher'),
134+
tagged_locator('event_dispatcher.dispatcher', 'name'),
135135
])
136136
->tag('console.command')
137137

src/Symfony/Bundle/FrameworkBundle/Resources/config/services.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class_exists(WorkflowEvents::class) ? WorkflowEvents::ALIASES : []
6969
->set('event_dispatcher', EventDispatcher::class)
7070
->public()
7171
->tag('container.hot_path')
72-
->tag('event_dispatcher.dispatcher')
72+
->tag('event_dispatcher.dispatcher', ['name' => 'event_dispatcher'])
7373
->alias(EventDispatcherInterfaceComponentAlias::class, 'event_dispatcher')
7474
->alias(EventDispatcherInterface::class, 'event_dispatcher')
7575

src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ private function createFirewall(ContainerBuilder $container, string $id, array $
385385
// Register Firewall-specific event dispatcher
386386
$firewallEventDispatcherId = 'security.event_dispatcher.'.$id;
387387
$container->register($firewallEventDispatcherId, EventDispatcher::class)
388-
->addTag('event_dispatcher.dispatcher');
388+
->addTag('event_dispatcher.dispatcher', ['name' => $firewallEventDispatcherId]);
389389

390390
// Register listeners
391391
$listeners = [];

src/Symfony/Bundle/SecurityBundle/Resources/config/debug_console.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
->args([
2020
param('security.firewalls'),
2121
service('security.firewall.context_locator'),
22-
tagged_locator('event_dispatcher.dispatcher'),
22+
tagged_locator('event_dispatcher.dispatcher', 'name'),
2323
[],
2424
false,
2525
])

0 commit comments

Comments
 (0)