You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -109,15 +109,12 @@ private function addTaggedListeners(ContainerBuilder $container)
109
109
thrownewRuntimeException(sprintf('The Doctrine connection "%s" referenced in service "%s" does not exist. Available connections names: %s', $con, $id, implode(', ', array_keys($this->connections))));
110
110
}
111
111
112
-
if ($lazy = isset($tag['lazy']) && $tag['lazy']) {
112
+
if ($lazy = !empty($tag['lazy'])) {
113
113
$taggedListenerDef->setPublic(true);
114
114
}
115
115
116
116
// we add one call per event per service so we have the correct order
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPassTest.php
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -90,11 +90,11 @@ public function testProcessEventListenersWithPriorities()
0 commit comments