Skip to content

Commit

Permalink
[EventDispatcher] fix registering subscribers twice on edge-case
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Feb 18, 2021
1 parent e3b0c88 commit ad60072
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -149,7 +149,7 @@ public function process(ContainerBuilder $container)
continue;
}

$dispatcherDefinitions[] = $container->getDefinition($attributes['dispatcher']);
$dispatcherDefinitions[$attributes['dispatcher']] = $container->getDefinition($attributes['dispatcher']);
}

if (!$dispatcherDefinitions) {
Expand Down

0 comments on commit ad60072

Please sign in to comment.