8000 bug #40246 [EventDispatcher] fix registering subscribers twice on edg… · symfony/symfony@2f4cd77 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f4cd77

Browse files
bug #40246 [EventDispatcher] fix registering subscribers twice on edge-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
2 parents e3b0c88 + ad60072 commit 2f4cd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function process(ContainerBuilder $container)
149149
continue;
150150
}
151151

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

155155
if (!$dispatcherDefinitions) {

0 commit comments

Comments
 (0)
0