Review main Merged

92168[FEATURE] Establish config file for Fluid namespaces

Simon Praetorius CR +2 V +2 Hard +474 −16 updated 01/09/26, 14:06

Commit message

A new extension-level configuration file
`Configuration/Fluid/Namespaces.php` is established, which allows
extensions to register and extend global Fluid namespaces. This
replaces the existing `TYPO3_CONF_VARS` option, which is deprecated
and will no longer be interpreted in TYPO3 v15.

The PSR-14 event `ModifyNamespacesEvent` is introduced, which allows
to modify the collected namespaces before they are passed to Fluid.

Global Fluid namespaces registered by TYPO3 core (`f`, `core` and
`formvh`) are already migrated to the new syntax. This change is
considered non-breaking, since they can still be overruled with the old
`TYPO3_CONF_VARS` syntax. In follow-up patches, the remaining usages of
`$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']`
within TYPO3 core will be migrated to the proper Fluid API.

Review

  • Code review CR +2 Done
    • Simon Praetorius +2
    • Georg Ringer +1
    • Lina Wolf +1
    • Matthias Vogel +1
  • Verified V +2 Done
    • Simon Praetorius +2
    • Georg Ringer +1
    • Lina Wolf +1
    • core-ci +1 CI

Issues 1

Files 23

Show 3 more files

Review log 1519

  1. Simon Praetorius uploaded patch set 1 12/18/25, 16:07

  2. core-ci voted on patch set 1 V -1 12/18/25, 16:15 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/92431

  3. Simon Praetorius uploaded patch set 2 V -1 12/18/25, 16:22

  4. core-ci voted on patch set 2 V +1 12/18/25, 16:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/92433

  5. Simon Praetorius uploaded patch set 3 V +1 12/26/25, 16:57

  6. core-ci voted on patch set 3 V +1 12/26/25, 17:05 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/92719

  7. Simon Praetorius updated the commit message in patch set 4 V +1 12/26/25, 17:05

  8. Simon Praetorius marked it ready for review 12/26/25, 17:05

  9. core-ci voted on patch set 4 V +1 12/26/25, 17:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/92720

  10. Lina Wolf commented on patch set 4 CR +1 V +1 01/04/26, 08:52

    I tested this with the Gravator viewHelper of the blogexample extension and it worked fine. Code looks good
  11. Lina Wolf commented on patch set 4 01/04/26, 08:56

  12. Matthias Vogel voted on patch set 4 CR +1 01/09/26, 11:47

  13. Benni Mack commented on patch set 4 01/09/26, 12:40

    hey simon, can you quickly elaborate why having an extra file for this better than one LOC in ext_localconf.php?
  14. Lina Wolf commented on patch set 4 01/09/26, 12:43

    Reply

    From my point of view individual files for separate concerns cause less conflicts in merging etc.
  15. Georg Ringer voted on patch set 4 CR +1 V +1 01/09/26, 12:52

  16. Simon Praetorius commented on patch set 4 01/09/26, 12:55

    Reply

    From my point of view, there are several reasons: * merging is more explicit/standardized. Currently, everyone seems to do it slightly differently (initialize empty array with/without if/at all...) * you can see at one glance which extension adds/extends namespaces * it's consistent to other configuration within TYPO3 The other Fluid-related config in TYPO3_CONF_VARS can probably be replaced with DI soon (probably in v15 because it needs a breaking change in Fluid in one instance). Also, I'd like to introduce another Fluid-related config file in a follow-up to register components, so there would be several config files in the Fluid folder, similar to Extbase.
  17. Benni Mack commented on patch set 4 01/09/26, 14:03

    Reply

    thx
  18. Simon Praetorius voted on patch set 4 CR +2 V +2 01/09/26, 14:06

  19. Simon Praetorius merged patch set 5 01/09/26, 14:06