8000 [Messenger] fix BC for FrameworkBundle 4.4 with a non-existence alias being used by monteiro · Pull Request #41553 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Messenger] fix BC for FrameworkBundle 4.4 with a non-existence alias being used #41553

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

Merged
Merged
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
Diff view
Diff view
[Messenger] fix BC for FrameworkBundle 4.4 with a non-existence alias…
… being used
  • Loading branch information
monteiro authored and nicolas-grekas committed Jun 8, 2021
commit aa0e166dc583bfc104b659f3c1bb79de1519461c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ private function registerReceivers(ContainerBuilder $container, array $busIds)
$commandDefinition = $container->getDefinition('console.command.messenger_failed_messages_retry');
$globalReceiverName = $commandDefinition->getArgument(0);
if (null !== $globalReceiverName) {
$failureTransportsMap[$commandDefinition->getArgument(0)] = new Reference('messenger.failure_transports.default');
if ($container->hasAlias('messenger.failure_transports.default')) {
$failureTransportsMap[$globalReceiverName] = new Reference('messenger.failure_transports.default');
} else {
$failureTransportsMap[$globalReceiverName] = new Reference('messenger.transport.'.$globalReceiverName);
}
}
}

Expand Down
0