Project

General

Profile

Bug #101699

Updated by Daniel Goerz over 1 year ago

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

Back