8000 [Doctrine Bridge] Fixed usage of wrong variable when tagged subscriber is invalid by stloyd · Pull Request #27812 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Doctrine Bridge] Fixed usage of wrong variable when tagged subscriber is invalid #27812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
[Doctrine Bridge] Fixed usage of wrong variable when tagged subscribe…
…r is invalid
  • Loading branch information
stloyd authored Jul 3, 2018
commit d7f48c314d1ef35e284a333ecbda08cf4590ef52
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private function addTaggedSubscribers(ContainerBuilder $container)
$connections = isset($tag['connection']) ? array($tag['connection']) : array_keys($this->connections);
foreach ($connections as $con) {
if (!isset($this->connections[$con])) {
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))));
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))));
}

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