Closed
Description
https://symfony.com/doc/current/messenger.html#stateless-worker
The reset_on_message
key is in different locations for YAML, XML and PHP.
YAML example has the reset_on_message
key under the messenger
key
XML example has the reset_on_message
attribute on the child <framework:transport>
element, and not the parent <framework:messenger>
PHP example has the reset_on_message
method on the TransportConfig
config helper, not on the parent MessengerConfig
.
The PHP example, at least on Symfony 5.4, should be as follows in order to work correctly.
$messenger = $framework->messenger();
$messenger->resetOnMessage(true);