#101699Default routing for messenger transports always applies.
Description
When using the symfony/messenger component in TYPO3, I discovered the following limitation:
The default configuration $GLOBALS['TYPO3_CONF_VARS']['SYS']['messenger']['routing']['*'] = 'default' will apply even if a different routing target was configured for a message:
For example, if I set $GLOBALS['TYPO3_CONF_VARS']['SYS']['messenger']['routing'][OrderSavedMessage::class] = 'doctrine'; then the message will be handled twice, because the '*' => 'default' config is still a match.
I have to unset the default with unset($GLOBALS['TYPO3_CONF_VARS']['SYS']['messenger']['routing']['*']);. Unsetting the default also has no effect on the default behavior, as default …. is the default anyway.
Reviews 5
- 14.3 95063[BUGFIX] Honour `AsMessageHandler::$fromTransport` property
- main 94833[BUGFIX] Honour `AsMessageHandler::$fromTransport` property
- 14.3 95008[BUGFIX] Treat Messenger wildcard route as fallback
- main 94829[BUGFIX] Treat Messenger wildcard route as fallback
- main 90023[BUGFIX] Use wildcard route only as fallback for messages