yii2-rabbitmq icon indicating copy to clipboard operation
yii2-rabbitmq copied to clipboard

Unable to define headers binding.

Open stepanets opened this issue 3 years ago • 1 comments

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

$channel->queue_bind($queueName, $exchangeName, '', false, new AMQPTable($bindArguments));

stepanets avatar Aug 24 '20 11:08 stepanets

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

mikemadisonweb avatar Aug 27 '20 07:08 mikemadisonweb