I am looking to bind a queue with exchange and routing key while consuming. Do anyone help me out to achieve the above using this (bschmitt/laravel-amqp) library?
I have to do something like below:
$binding_key = 'black';
$channel->queue_bind($queue_name, $exchange_name, $binding_key);
Will the below code works:
$connection = new AMQP();
$channel = $connection->channel();
$channel->queue_bind($queue_name, $exchange_name, $binding_key);
Will be great if anyone suggest me with the working code.
I am looking to bind a queue with exchange and routing key while consuming. Do anyone help me out to achieve the above using this (bschmitt/laravel-amqp) library?
I have to do something like below: $binding_key = 'black'; $channel->queue_bind($queue_name, $exchange_name, $binding_key);
Will the below code works:
$connection = new AMQP(); $channel = $connection->channel(); $channel->queue_bind($queue_name, $exchange_name, $binding_key);
Will be great if anyone suggest me with the working code.