Review main Merged Breaking

91294[!!!][FEATURE] Autoconfigure backend avatar providers

Elias Häußler CR +2 V +2 Hard +266 −43 updated 11/20/25, 11:55

Commit message

Backend avatar providers are now autoconfigured in the service container
if they implement the required interface
`\TYPO3\CMS\Backend\Backend\Avatar\AvatarProviderInterface` and use the
PHP attribute `#[AsAvatarProvider]`. All registered avatar providers are
tagged as `backend.avatar_provider` in the global service container.

This approach replaces the previous registration method via
`$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['backend']['avatarProviders']`,
which is now removed.

Developers supporting multiple TYPO3 Core versions can implement both
registration methods (via `$GLOBALS` and using autoconfiguration).

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
    • Lina Wolf +1
  • Verified V +2 Done
    • Christian Kuhn +2
    • Lina Wolf +1
    • core-ci +1 CI

Issues 1

Files 10

Review log 2633

Show 48 earlier messages
  1. Elias Häußler uploaded patch set 1 10/27/25, 19:43

  2. Elias Häußler uploaded patch set 2 10/27/25, 19:48

  3. core-ci voted on patch set 1 V -1 10/27/25, 19:51 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87726

  4. Elias Häußler uploaded patch set 3 10/27/25, 19:54

  5. core-ci voted on patch set 2 V -1 10/27/25, 20:01 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87727

  6. core-ci voted on patch set 3 V +1 10/27/25, 20:04 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87728

  7. Elias Häußler uploaded patch set 4 V +1 10/27/25, 20:47

  8. core-ci voted on patch set 4 V +1 10/27/25, 20:55 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87743

  1. Elias Häußler marked it ready for review 10/27/25, 21:09

  2. Elias Häußler uploaded patch set 5 V +1 11/06/25, 08:38

  3. core-ci voted on patch set 5 V +1 11/06/25, 08:45 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/88557

  4. Lina Wolf commented on patch set 5 CR +1 V +1 11/07/25, 12:37

    Tested with a custom AvatorProvider in extension t3docs/examples
  5. Josua Vogel voted on patch set 5 CR +1 V +1 11/07/25, 22:04

  6. Georg Ringer voted on patch set 5 CR +1 V +1 11/08/25, 08:03

  7. Simon Schaufelberger commented on patch set 5 11/08/25, 09:13

    is it possible to inject all classes implementing the interface instead of manually tagging them? then of course without any before or after configuration
  8. Elias Häußler commented on patch set 5 11/10/25, 08:54

    Reply

    What's your intention here? AFAIK it's not easily possible without tagging.
  9. Simon Schaufelberger commented on patch set 5 11/10/25, 09:12

    Reply

    less configuration, more magic.
  10. Simon Schaufelberger commented on patch set 5 11/10/25, 09:22

    Reply

    Done
  11. Lina Wolf commented on patch set 5 11/10/25, 09:26

    Reply

    I think this is such a rare use case that no magic is required.
  12. Elias Häußler uploaded patch set 6 CR +1 V +1 11/18/25, 13:37

  13. Elias Häußler commented on patch set 6 11/18/25, 13:42

    Reply

    Done
  14. core-ci voted on patch set 6 V +1 11/18/25, 13:51 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/90028

  15. Georg Ringer voted on patch set 6 CR +1 V +1 11/18/25, 20:18

  16. Simon Schaufelberger voted on patch set 6 CR +1 V +1 11/18/25, 21:39

  17. Lina Wolf voted on patch set 6 CR +1 V +1 11/19/25, 12:43

  18. Oli Bartsch commented on patch set 6 CR -1 11/19/25, 21:16

    Breaking-107871-RemoveBackendAvatarProviderRegistrationViaGLOBALS.rst:18

    This is not true, autoconfiguration happens based on the AsAvatarProvider tag.

    Feature-107871-AutoconfigureBackendAvatarProviders.rst:15

    This is not true, autoconfiguration happens based on the AsAvatarProvider tag. The interface is only validated in the registry.
  19. Lina Wolf commented on patch set 6 CR -1 11/20/25, 11:00

    Working on it
  20. Lina Wolf uploaded patch set 7 CR +1 V +1 11/20/25, 11:11

  21. Lina Wolf commented on patch set 7 CR +1 V +1 11/20/25, 11:11

    Fixed the mistakes and did a general review of the changelog entries.

    Breaking-107871-RemoveBackendAvatarProviderRegistrationViaGLOBALS.rst:18 Reply

    Done

    Feature-107871-AutoconfigureBackendAvatarProviders.rst:15 Reply

    Done
  22. core-ci voted on patch set 7 V +1 11/20/25, 11:19 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/90265

  23. Christian Kuhn voted on patch set 7 CR +1 V +1 11/20/25, 11:25

  24. Christian Kuhn voted on patch set 7 CR +2 V +2 11/20/25, 11:55

  25. Christian Kuhn merged patch set 8 11/20/25, 11:55