Skip to content
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

Unable to define headers binding. #52

Open
stepanets opened this issue Aug 24, 2020 · 1 comment
Open

Unable to define headers binding. #52

stepanets opened this issue Aug 24, 2020 · 1 comment

Comments

@stepanets
Copy link

Seems like it's impossible to configure binding to the exchange of type HEADERS.

$channel->queue_bind($queueName, $exchangeName, '', false, new AMQPTable($bindArguments));
@mikemadisonweb
Copy link
Owner

Hi @stepanets, thanks for raising the issue.
I will add it to the plan for the next release. Otherwise, you can create a PR, the fix seems quite trivial to make bindExchangeToQueue method tolerate additional binding array keys and pass them to queue_bind: https://github.com/mikemadisonweb/yii2-rabbitmq/blob/master/components/Routing.php#L145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants