Issue Task Resolved

#111403Free remaining registries and core services from SingletonInterface

Benni Mack 11/11/26, 07:22 updated 11/11/26, 13:15

Description

Follow-up to #110578.

SingletonInterface only turns a class into a shared and public service, so GeneralUtility::makeInstance() can reach it. Sharing is the container default anyway. The marker is dropped from the remaining Core classes where this is the only effect:

  • TYPO3\CMS\Core\Registry
  • TYPO3\CMS\Core\Imaging\IconRegistry
  • TYPO3\CMS\Core\Page\ImportMapFactory
  • TYPO3\CMS\Core\Resource\Collection\FileCollectionRegistry
  • TYPO3\CMS\Core\Resource\Driver\DriverRegistry
  • TYPO3\CMS\Core\Html\DefaultSanitizerBuilder
  • TYPO3\CMS\Core\Html\PreviewSanitizerBuilder
  • TYPO3\CMS\Core\Routing\SiteMatcher
  • TYPO3\CMS\Core\Session\SessionManager
  • TYPO3\CMS\Form\Slot\FilePersistenceSlot
  • TYPO3\CMS\Form\Slot\ResourcePublicationSlot

Classes that are fetched by class name are declared public explicitly, so makeInstance() call sites keep working.

Reviews 1

History 23

  1. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-11T13:15:15+00:00" > 11/11/26, 13:15 </span>

    Applied in changeset commit:f43866fd1e0a0271175a75e665e16cfbaf57f46f.