Skip to content

Commit

Permalink
[Messenger] Rename the messenger:consume-messages command
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Apr 1, 2019
1 parent 7bacdf5 commit 52a7157
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -410,19 +410,23 @@ while still having them passed to their respective handler:
Consuming Messages
------------------

Once your messages have been routed, you will like to consume your messages in most
of the cases. To do so, you can use the ``messenger:consume-messages`` command
like this:
Once your messages have been routed, you will like to consume your messages in
most of the cases. To do so, use the ``messenger:consume`` command like this:

.. code-block:: terminal
$ php bin/console messenger:consume-messages amqp
$ php bin/console messenger:consume amqp
The first argument is the receiver's service name. It might have been created by
your ``transports`` configuration or it can be your own receiver.
It also requires a ``--bus`` option in case you have multiple buses configured,
which is the name of the bus to which received messages should be dispatched.

.. versionadded:: 4.3

The ``messenger:consume`` command was renamed in Symfony 4.3 (previously it
was called ``messenger:consume-messages``).

Middleware
----------

Expand Down

0 comments on commit 52a7157

Please sign in to comment.