Skip to content

Commit cf1bc66

Browse files
authored
[Doctrine Bridge] Fixed usage of wrong variable when tagged subscriber is invalid
1 parent 1da4252 commit cf1bc66

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
@@ -75,7 +75,7 @@ private function addTaggedSubscribers(ContainerBuilder $container)
7575
$connections = isset($tag['connection']) ? array($tag['connection']) : array_keys($this->connections);
7676
foreach ($connections as $con) {
7777
if (!isset($this->connections[$con])) {
78-
throw new RuntimeException(sprintf('The Doctrine connection "%s" referenced in service "%s" does not exist. Available connections names: %s', $con, $taggedSubscriber, implode(', ', array_keys($this->connections))));
78+
throw new RuntimeException(sprintf('The Doctrine connection "%s" referenced in service "%s" does not exist. Available connections names: %s', $con, $id, implode(', ', array_keys($this->connections))));
7979
}
8080

8181
$this->getEventManagerDef($container, $con)->addMethodCall('addEventSubscriber', array(new Reference($id)));

0 commit comments

Comments
 (0)