Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] Transports in separate packages #13006

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
Feb 13, 2020
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
26 changes: 25 additions & 1 deletion 26 messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,14 @@ options.
AMQP Transport
~~~~~~~~~~~~~~

.. versionadded:: 5.1

The AMQP transport has moved to a separate package. Install it by running
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this ... but I'd be more explicit in the message. The current proposal will only display 5.1 (because of the versionadded directive) and the message ... so we could reword it like this to be more clear about when this change will happen:

.. versionadded:: 5.1

    Starting from Symfony 5.1, the AMQP transport has moved to a separate package.
    Install it by running:


.. code-block:: terminal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rendering of a "code-block" inside a "versionadded" is not very well supported.
I have this rendering :
Capture d’écran 2020-03-04 à 17 36 19

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to have something like this :
Capture d’écran 2020-03-04 à 17 39 34


$ composer require symfony/amqp-messenger

The ``amqp`` transport configuration looks like this:

.. code-block:: bash
Expand All @@ -753,7 +761,7 @@ You can also configure AMQP-specific settings on your message by adding
:class:`Symfony\\Component\\Messenger\\Transport\\AmqpExt\\AmqpStamp` to
your Envelope::

use Symfony\Component\Messenger\Transport\AmqpExt\AmqpStamp;
use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpStamp;
// ...

$attributes = [];
Expand All @@ -775,6 +783,14 @@ your Envelope::
Doctrine Transport
~~~~~~~~~~~~~~~~~~

.. versionadded:: 5.1

The Doctrine transport has moved to a separate package. Install it by running

.. code-block:: terminal

$ composer require symfony/doctrine-messenger

The Doctrine transport can be used to store messages in a database table.

.. code-block:: bash
Expand Down Expand Up @@ -877,6 +893,14 @@ auto_setup Whether the table should be created
Redis Transport
~~~~~~~~~~~~~~~

.. versionadded:: 5.1

The Redis transport has moved to a separate package. Install it by running

.. code-block:: terminal

$ composer require symfony/redis-messenger

The Redis transport uses `streams`_ to queue messages.

.. code-block:: bash
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.