Skip to content

[Messenger] "reset_on_message" location is inconsistent #16451

Closed
@benr77

Description

@benr77

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    MessengerhasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions