[FrameworkBundle] fix debug:event-dispatcher and debug:firewall
This commit is contained in:
parent
8ef49cf3b3
commit
83cd55269c
@ -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')
|
||||
|
||||
|
@ -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')
|
||||
|
||||
|
@ -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 = [];
|
||||
|
@ -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,
|
||||
])
|
||||
|
Reference in New Issue
Block a user