With the current implementation I have to manually add your commands to the messenger routing config to use an async transport. Instead it would be nice to have a configuration option named transport or something. This transport could then be used to route your messages.
I have done something similar here (although I think it's ugly): https://github.com/Setono/SyliusFragmentTranslationPlugin/blob/master/src/DependencyInjection/SetonoSyliusFragmentTranslationExtension.php#L36-L53
With the current implementation I have to manually add your commands to the messenger routing config to use an async transport. Instead it would be nice to have a configuration option named
transportor something. This transport could then be used to route your messages.I have done something similar here (although I think it's ugly): https://github.com/Setono/SyliusFragmentTranslationPlugin/blob/master/src/DependencyInjection/SetonoSyliusFragmentTranslationExtension.php#L36-L53