File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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
780786Retries & Failures
You can’t perform that action at this time.
0 commit comments