Skip to content

[Messenger] Suggest to provide a DropMessageMiddleware #26901

@ghost

Description

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 4.1

Hi, in my project, I need to disable message dispatching for some edge-cases. For exemple, when loading data-fixtures, I need to disable mail delivery (welcome mails are sent on Doctrine persist event). For that, I use a processor with AliceFixture, and this processor enable or disable a middleware in charge of dropping the messages. Do you think that this middleware could be useful for someone else and should be embedded with the component?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions