Skip to content

[Messenger] fix xml block #16762

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
May 4, 2022
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
10 changes: 8 additions & 2 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,8 @@ reset the service container between two messages:
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<framework:config>
<framework:messenger>
<framework:transport name="async" dsn="%env(MESSENGER_TRANSPORT_DSN)%" reset-on-message="true">
<framework:messenger reset-on-message="true">
<framework:transport name="async" dsn="%env(MESSENGER_TRANSPORT_DSN)%">
</framework:transport>
</framework:messenger>
</framework:config>
Expand All @@ -775,6 +775,12 @@ reset the service container between two messages:

The ``reset_on_message`` option was introduced in Symfony 5.4.

.. note::

``reset_on_message`` will default to true (with no other allowed value) in
Symfony 6. To disable this behavior, execute the ``messenger:consume``
command with the ``--no-reset`` option.

.. _messenger-retries-failures:

Retries & Failures
Expand Down