Deprecation: #85821 - bootstrap methods

See forge#85821

Description

The following methods of TYPO3\CMS\Core\Core\Bootstrap have been marked as deprecated. Some of them will just change their visibility from public to protected in TYPO3 v10 and thus should not be called externally any longer:

  • TYPO3\CMS\Core\Core\Bootstrap::usesComposerClassLoading()

  • TYPO3\CMS\Core\Core\Bootstrap::getInstance()

  • TYPO3\CMS\Core\Core\Bootstrap->configure()

  • TYPO3\CMS\Core\Core\Bootstrap::checkIfEssentialConfigurationExists()

  • TYPO3\CMS\Core\Core\Bootstrap->setEarlyInstance()

  • TYPO3\CMS\Core\Core\Bootstrap->getEarlyInstance()

  • TYPO3\CMS\Core\Core\Bootstrap->getEarlyInstances()

  • TYPO3\CMS\Core\Core\Bootstrap::loadConfigurationAndInitialize()

  • TYPO3\CMS\Core\Core\Bootstrap->initializePackageManagement()

  • TYPO3\CMS\Core\Core\Bootstrap::populateLocalConfiguration()

  • TYPO3\CMS\Core\Core\Bootstrap::disableCoreCache()

  • TYPO3\CMS\Core\Core\Bootstrap::initializeCachingFramework()

  • TYPO3\CMS\Core\Core\Bootstrap->setRequestType()

  • TYPO3\CMS\Core\Core\Bootstrap::setFinalCachingFrameworkCacheConfiguration()

Impact

This deprecation is only interesting for code that interferes with early core bootstrap. Those may trigger PHP E_USER_DEPRECATED error.

Affected Installations

Instances using early bootstrap code may be affected by this. Those should strive for using the general entry method Bootstrap::init() instead.

Migration

See changes on the typo3/testing-framework which formerly used early instance bootstrap calls for an example on how existing code can be refactored to use the top level Bootstrap::init() instead.