Review main Merged

94829[BUGFIX] Treat Messenger wildcard route as fallback

Stefan Bürk CR +2 V +2 Hard +667 −24 updated 07/30/26, 06:24

Commit message

Symfony Messenger transport routing configured in the
"routing" section of

  $GLOBALS['TYPO3_CONF_VARS']['SYS']['messenger']

always applied a wildcard route - a namespace wildcard
(My\Message\*) or the global '*' - in addition to any
matching specific route. A message that matched both a
specific route and a wildcard route was thus dispatched to
both transports. As TYPO3 ships a default catch-all route
'*' => 'default', every routed message was silently sent to
the default transport as well, and routing a message to its
specific transport only required unsetting the wildcard route
in an extension.

A wildcard route now acts as a fallback and is skipped as
soon as a more specific type - the message class, a parent
class, an implemented interface or a more specific namespace
wildcard - already matched. It only applies when no specific
route matched. This mirrors the upstream Symfony
SendersLocator resolution and makes the manual unset() of the
wildcard route obsolete.

Routing values may additionally be given as an ordered list
of transport identifiers to route a message to several
transports on purpose; the legacy single-string mapping keeps
working as the single-element array form.

Review

  • Code review CR +2 Done
    • Stefan Bürk +2
    • Daniel Goerz +1
    • Can Adrian Karadag +1
    • Benni Mack +1
  • Verified V +2 Done
    • Stefan Bürk +2
    • Can Adrian Karadag +1
    • Benni Mack +1
    • core-ci +1 CI

Issues 3

Files 7

Review log 2028

Show 23 earlier messages
  1. Stefan Bürk uploaded patch set 1 07/18/26, 00:07

  2. core-ci voted on patch set 1 V +1 07/18/26, 00:15 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104917

  3. Stefan Bürk uploaded patch set 2 V +1 07/18/26, 01:04

  1. core-ci voted on patch set 2 V +1 07/18/26, 01:13 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104923

  2. Stefan Bürk updated the commit message in patch set 3 V +1 07/19/26, 14:16

  3. core-ci voted on patch set 3 V +1 07/19/26, 14:25 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104958

  4. Stefan Bürk uploaded patch set 4 V +1 07/19/26, 18:29

  5. core-ci voted on patch set 4 V +1 07/19/26, 18:39 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104964

  6. Stefan Bürk wrote 07/19/26, 19:34

    Topic set to messenger
  7. Benni Mack commented on patch set 4 CR -1 07/20/26, 10:35

    the RST file needs to go into 13.4.x/ folder
  8. Stefan Bürk commented on patch set 4 07/20/26, 12:09

    Reply

    You are right - added it to 15.0 because I had it main only first.
  9. Stefan Bürk uploaded patch set 5 CR -1 V +1 07/20/26, 13:14

  10. Benni Mack commented on patch set 5 07/20/26, 13:19

    Reply

    Done
  11. core-ci voted on patch set 5 V +1 07/20/26, 13:29 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105028

  12. Can Adrian Karadag voted on patch set 5 V +1 07/24/26, 06:02

  13. Benni Mack commented on patch set 5 CR +1 07/27/26, 13:35

    my gut feeling tells me, we should backport this to 14.3 only
  14. Stefan Bürk updated the commit message in patch set 6 CR +1 V +1 07/28/26, 06:28

  15. Stefan Bürk commented on patch set 6 07/28/26, 06:29

    Reply

    Done.
  16. Stefan Bürk rebased onto patch set 7 07/28/26, 06:29

  17. Benni Mack commented on patch set 8 07/28/26, 06:32

    Published edit on patch set 7.
  18. core-ci voted on patch set 6 V +1 07/28/26, 06:42 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105514

  19. core-ci voted on patch set 7 V +1 07/28/26, 06:42 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105515

  20. core-ci voted on patch set 8 V +1 07/28/26, 06:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105521

  21. Benni Mack voted on patch set 8 CR +1 V +1 07/28/26, 12:16

  22. Daniel Goerz voted on patch set 8 CR +1 07/29/26, 14:02

  23. Can Adrian Karadag voted on patch set 8 CR +1 V +1 07/30/26, 04:41

  24. Stefan Bürk voted on patch set 8 CR +2 V +2 07/30/26, 06:11

  25. Stefan Bürk merged patch set 9 07/30/26, 06:24