Breaking: #110319 - Removed unused internal Bootstrap methods
See forge#110319
Description
The following methods of
\TYPO3\ have been
removed:
Bootstrap::base Setup () Bootstrap::create Configuration Manager () Bootstrap::populate Local Configuration ()
All three were marked
@internal
and are not used by TYPO3 Core
anymore.
Bootstrap:: only registered the class loading
information in non-Composer mode, which
Bootstrap:: does
itself. The two configuration related methods have been inlined into
Bootstrap::, as they consisted of a single statement each.
Impact
Calling one of the removed methods results in a fatal PHP error
(
Call to undefined method
).
Affected installations
TYPO3 installations with third-party extensions or custom entry point
scripts that call
Bootstrap:: or
Bootstrap:: directly - a pattern
sometimes used in custom, non-Composer bootstrapping scripts.
Bootstrap:: was already
protected
and could not be called from the outside.
The extension scanner reports possible usages.
Migration
Remove calls to
Bootstrap::,
Bootstrap:: performs the equivalent setup internally.
Replace
Bootstrap:: with a direct
instantiation:
$configurationManager = new \TYPO3\CMS\Core\Configuration\ConfigurationManager();