Skip to content

Commit 08b2da7

Browse files
committed
Fix class resolution in Doctrine EventListenerPass
1 parent 4b8983a commit 08b2da7

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)