#83968PSR-11 Initiative
Description
TYPO3 should support PSR-11 to manage class dependencies and to avoid global state.
A long term goal should be to avoid both GeneralUtility::makeInstance to retrieve singletons and static methods like ::getInstance().
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Subtasks 35
- Task #83951Decouple Bootstrap and Application initialization
- Task #83952Make stateless Bootstrap methods static
- Task #83953Inject the PackageManager into the DependencyResolver
- Task #83954Do not use Bootstrap->getInstance()::populateLocalConfiguration
- Task #83961Remove unused bootstrap dependency from frontend RequestHandler
- Task #83966Consolidate singleton usage
- Task #84082A LogRecord should not rely on global state (requestId from Bootstrap)
- Task #84083ApplicationContext should consistently be retrieved from GeneralUtility
- Task #84099Decouple SystemEnvironmentBuilder from Bootstrap
- Task #84107Stop monkey patching CacheManager configuration in InstallTool
- Task #84109Merge the package DependencyResolver into the PackageManager
- Task #84112Add support for service providers
- Task #84117Do not reinitialize CacheManager and PackageManager in clearAllCache
- Task #86261PackageManager caching is over complicated
- Task #86270Deprecate config.tx_extbase.objects and plugin.tx_%name%.objects
- Task #86353Deprecate CacheManager usage in ext_localconf.php
- Task #86404Deprecate $GLOBALS['TYPO3_LOADED_EXT']
- Bug #86408FailsafePackageManager does not sort packages when PackageStates.php file is missing
- Bug #87503ErrorPageController relies on an available PackageManager
- Bug #87504Use statement for Typo3DatabaseBackend as used in Bootstrap::createCache is missing
- Task #87735Do not use ObjectManager to instantiate PageTitleProviderManager
- Task #87739Mock ResourceFactory Singleton instantation in unit tests
- Task #87741Mock SignalSlot\Dispatcher FileRepository Singletons in unit tests
- Task #87742Use real ObjectManager stubs in unit tests
- Feature #88689Support for system-wide class dependency injection, PSR-11
- Task #88721Hook up ContainerInterface in backend route dispatcher
- Task #88793Configure dependency injection for Core/Context class
- Task #88800Use dependency injection in PSR-15 middlewares
- Bug #88825Exception during Dependency Injection Container compilation when EXT:scheduler is not available
- Feature #89139Symfony Console Commands should be able to use dependency injection
- Bug #89207Incorrect PSR-11 related deprecation messages being triggered by ObjectManager->get()
- Task #89280TypoScript Template Constant Editor flushes to many caches, results in slow frontend responses due to DI rebuild
- Bug #89504Upgrade wizards fail if Extensions are to be installed
- Task #89766Use ArrayObject for services instead of array for middleware services
- Task #90247Add backend routes to router using DI factories