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...
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...