Epic #83968: PSR-11 Initiative
Do not reinitialize CacheManager and PackageManager in clearAllCache
Those (re)initializations originate from https://review.typo3.org/19605
was used to "Reinitialize the class loader during clear cache actions"
(according to phpdoc).
Then with the changes in https://review.typo3.org/29811
was dropped and splitted into unregisterClassLoader(),
initializeCachingFramework() and initializePackageManagement().
(just historical info, still all good)
Then http://review.typo3.org/39827 came and dropped unregisterClassLoader
but left the CacheManager and PackageManager reinitialization in place
superfluously. It's superfluous as the original usecase was to
reinitialize the class loader which is no longer required.
Updated by Benjamin Franzke about 3 years ago
- Priority changed from Won't have this time to Should have
This is wrong. Bootstrap::loadTypo3LoadedExtAndExtLocalconf requires $GLOBALS['TYPO3_LOADED_EXT'] and therefore initializePackageManagement is required.
Need to revert myself here. There is NO new PackageManager required as the FailsafePackageManager loads all active extensions defined in PackagesStates.php.
Therefore my proposed solution is still valid.