Issue Task Under Review

#111626Drop SingletonInterface from PageRenderer and AssetCollector

Benni Mack 11/26/26, 17:25 updated 11/26/26, 18:30

Description

PageRenderer and AssetCollector still implement SingletonInterface. Both are shared services in the container, so the marker is no longer needed to make them shared.

The marker should be replaced by #[Autoconfigure(public: true)], so GeneralUtility::makeInstance() in third-party code keeps returning the shared container instance.

Core code that still fetches them via GeneralUtility::makeInstance() should receive them via dependency injection instead: ShortcutButton, the backend link handlers, DefaultJavaScriptAssetTrait (ContentObjectRenderer, LinkFactory, EmailLinkBuilder), PrepareTypoScriptFrontendRendering, RedirectService and the redirects DispatchNotificationHook.

Follow-up of #110578 and #111585.

Reviews 1

History 01

  1. Gerrit Code Review pushed patch set 1 for main to change 98080 status New Under Review 11/26/26, 18:30