Closed
Description
Description
When using https://github.com/php-enqueue/enqueue, a command:
enqueue:consume
is provided, in which there is no need to specify the consumers.
But when I run
bin/console messenger:consume
I'm getting prompt about which transport I want to consume.
I saw in the code there was
$defaultReceiverName = 1 === \count($this->receiverNames) ? current($this->receiverNames) : null;
$defaultReceivers = $defaultReceiverName ? [$defaultReceiverName] : [];
What about something like --all in order to consume everything ? Would it be a good idea ?
Or maybe a commande should be added to list all the transports and then the output could be used for the consume command (or even to setup different supervisor with a foreach loop on the output ?)
I'd like to avoid updating my conf/commands
bin/console messenger:consume foo1,foo2,...
everytime.
Example
Originally posted by @VincentLanglet in #51989