[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)
|
->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')
|
||||||
|
|
||||||
|
@ -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')
|
||||||
|
|
||||||
|
@ -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 = [];
|
||||||
|
@ -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,
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user