Skip to content

Commit 190f089

Browse files
minor symfony#39990 [DoctrineBridge] Fix class resolution in Doctrine EventListenerPass (jderusse)
This PR was merged into the 4.4 branch. Discussion ---------- [DoctrineBridge] Fix class resolution in Doctrine EventListenerPass | Q | A | ------------- | --- | Branch? | 4.x | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | fix # | License | MIT | Doc PR | - Commits ------- 08b2da7 Fix class resolution in Doctrine EventListenerPass
2 parents 484a95d + 08b2da7 commit 190f089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private function addTaggedSubscribers(ContainerBuilder $container, array &$liste
8585

8686
if (!isset($managerDefs[$con])) {
8787
$managerDef = $parentDef = $this->getEventManagerDef($container, $con);
88-
while ($parentDef instanceof ChildDefinition) {
88+
while (!$parentDef->getClass() && $parentDef instanceof ChildDefinition) {
8989
$parentDef = $container->findDefinition($parentDef->getParent());
9090
}
9191
$managerClass = $container->getParameterBag()->resolveValue($parentDef->getClass());

0 commit comments

Comments
 (0)