Skip to content

Commit

Permalink
bug #40246 [EventDispatcher] fix registering subscribers twice on edg…
Browse files Browse the repository at this point in the history
…e-case (nicolas-grekas)

This PR was merged into the 5.2 branch.

Discussion
----------

[EventDispatcher] fix registering subscribers twice on edge-case

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Introduced on 5.1 in #36243

Commits
-------

ad60072 [EventDispatcher] fix registering subscribers twice on edge-case
  • Loading branch information
nicolas-grekas committed Feb 18, 2021
2 parents e3b0c88 + ad60072 commit 2f4cd77
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 2f4cd77

Please sign in to comment.