Skip to content

Commit c150197

Browse files
committed
[Messenger] fix xml block
1 parent 9ae87c0 commit c150197

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

messenger.rst

+8-2
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,8 @@ reset the service container between two messages:
753753
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
754754
755755
<framework:config>
756-
<framework:messenger>
757-
<framework:transport name="async" dsn="%env(MESSENGER_TRANSPORT_DSN)%" reset-on-message="true">
756+
<framework:messenger reset-on-message="true">
757+
<framework:transport name="async" dsn="%env(MESSENGER_TRANSPORT_DSN)%">
758758
</framework:transport>
759759
</framework:messenger>
760760
</framework:config>
@@ -775,6 +775,12 @@ reset the service container between two messages:
775775

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

778+
.. note::
779+
780+
``reset_on_message`` will default to true (with no other allowed value) in
781+
Symfony 6. To disable this behavior, execute the ``messenger:consume``
782+
command with the ``--no-reset`` option.
783+
778784
.. _messenger-retries-failures:
779785

780786
Retries & Failures

0 commit comments

Comments
 (0)