minor #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
-------
08b2da79e8
Fix class resolution in Doctrine EventListenerPass
This commit is contained in:
commit
190f089fee
@ -85,7 +85,7 @@ class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface
|
|||||||
|
|
||||||
if (!isset($managerDefs[$con])) {
|
if (!isset($managerDefs[$con])) {
|
||||||
$managerDef = $parentDef = $this->getEventManagerDef($container, $con);
|
$managerDef = $parentDef = $this->getEventManagerDef($container, $con);
|
||||||
while ($parentDef instanceof ChildDefinition) {
|
while (!$parentDef->getClass() && $parentDef instanceof ChildDefinition) {
|
||||||
$parentDef = $container->findDefinition($parentDef->getParent());
|
$parentDef = $container->findDefinition($parentDef->getParent());
|
||||||
}
|
}
|
||||||
$managerClass = $container->getParameterBag()->resolveValue($parentDef->getClass());
|
$managerClass = $container->getParameterBag()->resolveValue($parentDef->getClass());
|
||||||
|
Reference in New Issue
Block a user