Skip to content

[Messenger] Rename the messenger:consume-messages command #11262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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