Skip to content

[Messenger] support for multiple bindings on the same queue #38485

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

Open
wants to merge 10 commits into
base: 7.4
Choose a base branch
from
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/master' into 37233-support-multi…
…ple-bindings

# Conflicts:
#	src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php
  • Loading branch information
Oleg Namaka committed Jan 6, 2023
commit 2bf09a7ab5a4a35b79352e8fd3c8cc5799d9cad8
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ private static function validateOptions(array $options): void
}

if (0 < \count($invalidQueueOptions = array_diff(array_keys($queue), self::AVAILABLE_QUEUE_OPTIONS, self::ORIGINAL_BINDING_KEYS))) {
trigger_deprecation('symfony/messenger', '5.1', 'Invalid queue option(s) "%s" passed to the AMQP Messenger transport. Passing invalid queue options is deprecated.', implode('", "', $invalidQueueOptions));
throw new LogicException(sprintf('Invalid queue option(s) "%s" passed to the AMQP Messenger transport.', implode('", "', $invalidQueueOptions)));
} elseif (0 < \count($invalidQueueOptions = array_diff(array_keys($queue), self::AVAILABLE_QUEUE_OPTIONS))) {
trigger_deprecation('symfony/messenger', '5.2', 'Deprecated queue option(s) "%s" passed to the AMQP Messenger transport. The "bindings" option should be used rather than "binding_keys" and "binding_arguments".', implode('", "', $invalidQueueOptions));
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.