Routing key handling - PHP RabbitMqBundle

Hi,

We can't define a routing key by a symfony command : php app/console rabbitmq:consumer -m 2 -r "support.customer.#" siva

The "-r" argument gives an empty array when i printr the "$this->queueOptions['routingkeys']" in the queue_declare function in BaseAmqp class.

--> Array()

It works fine when it's defined like this : queueoptions: name: 'sivideosiva' routing_keys: - 'support.customer.#'

--> Array ( [0] => support.customer.# )

Thanks

Asked Oct 12 '21 13:10
avatar linconnu
linconnu

2 Answer:

Perhaps you have a problem escaping the # char on the CLI? Keep in mind that's a comment in bash. Maybe try with single quotes?

1
Answered Jul 31 '14 at 09:30
avatar  of videlalvaro
videlalvaro

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

1
Answered Mar 16 '21 at 20:24
avatar  of github-actions[bot]
github-actions[bot]