Skip to content

Commit d4bc25d

Browse files
committed
feature #19271 [Messenger] Add --all option to messenger:consume (alexandre-daubois)
This PR was merged into the 7.1 branch. Discussion ---------- [Messenger] Add `--all` option to `messenger:consume` Fix #19213 Commits ------- 8ebe0dd [Messenger] Add `--all` option to `messenger:consume`
2 parents 5835fb8 + 8ebe0dd commit d4bc25d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

messenger.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,17 @@ The first argument is the receiver's name (or service id if you routed to a
485485
custom service). By default, the command will run forever: looking for new messages
486486
on your transport and handling them. This command is called your "worker".
487487

488+
If you want to consume messages from all available receivers, you can use the
489+
command with the ``--all`` option:
490+
491+
.. code-block:: terminal
492+
493+
$ php bin/console messenger:consume --all
494+
495+
.. versionadded:: 7.1
496+
497+
The ``--all`` option was introduced in Symfony 7.1.
498+
488499
.. tip::
489500

490501
To properly stop a worker, throw an instance of

0 commit comments

Comments
 (0)