@@ -225,10 +225,10 @@ protected function queueDeclare()
225
225
226
226
if (isset ($ this ->queueOptions ['routing_keys ' ]) && count ($ this ->queueOptions ['routing_keys ' ]) > 0 ) {
227
227
foreach ($ this ->queueOptions ['routing_keys ' ] as $ routingKey ) {
228
- $ this ->queueBind ($ queueName , $ this ->exchangeOptions ['name ' ], $ routingKey );
228
+ $ this ->queueBind ($ queueName , $ this ->exchangeOptions ['name ' ], $ routingKey, $ this -> queueOptions [ ' arguments ' ] ?? [] );
229
229
}
230
230
} else {
231
- $ this ->queueBind ($ queueName , $ this ->exchangeOptions ['name ' ], $ this ->routingKey );
231
+ $ this ->queueBind ($ queueName , $ this ->exchangeOptions ['name ' ], $ this ->routingKey , $ this -> queueOptions [ ' arguments ' ] ?? [] );
232
232
}
233
233
234
234
$ this ->queueDeclared = true ;
@@ -242,11 +242,11 @@ protected function queueDeclare()
242
242
* @param string $exchange
243
243
* @param string $routing_key
244
244
*/
245
- protected function queueBind ($ queue , $ exchange , $ routing_key )
245
+ protected function queueBind ($ queue , $ exchange , $ routing_key, array $ arguments = array () )
246
246
{
247
247
// queue binding is not permitted on the default exchange
248
248
if ('' !== $ exchange ) {
249
- $ this ->getChannel ()->queue_bind ($ queue , $ exchange , $ routing_key );
249
+ $ this ->getChannel ()->queue_bind ($ queue , $ exchange , $ routing_key, false , $ arguments );
250
250
}
251
251
}
252
252
0 commit comments