Skip to content

Shouldn't MessageHandlers be configured to only process messages from this plugin's message buses ? #157

@acornforth

Description

@acornforth

I am developing a plugin for sylius, and, as with this plugin, I am using messenger.

When debugging my code with php bin/console debug:messenger I can see that this plugins message handlers are listening to all buses.

While this is not an urgent issue, and may not even produce any errors in most cases, surely, for maximum interoperability with other plugins/bundles, unless there is a specific reason why these handlers need to listen on other buses, they should probably be restricted to the buses defined in this bundle.

Mainly I'm asking in order to validate whether i need to do this in my own bundle...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions