[EventDispatcher] fix registering subscribers twice on edge-case
This commit is contained in:
parent
e3b0c8868c
commit
ad60072998
@ -149,7 +149,7 @@ class RegisterListenersPass implements CompilerPassInterface
|
||||
continue;
|
||||
}
|
||||
|
||||
$dispatcherDefinitions[] = $container->getDefinition($attributes['dispatcher']);
|
||||
$dispatcherDefinitions[$attributes['dispatcher']] = $container->getDefinition($attributes['dispatcher']);
|
||||
}
|
||||
|
||||
if (!$dispatcherDefinitions) {
|
||||
|
Reference in New Issue
Block a user