Skip to content

Commit

Permalink
[TASK] Typo 'boostrap' should be 'bootstrap'
Browse files Browse the repository at this point in the history
Resolves: #87205
Releases: master, 9.5
Change-Id: Idb22d2178bbd20982d4876b5dff45b06dea4100d
Reviewed-on: https://review.typo3.org/59200
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
  • Loading branch information
lolli42 authored and wouter90 committed Dec 18, 2018
1 parent 00bca0d commit d76373a
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 85 deletions.
2 changes: 1 addition & 1 deletion typo3/sysext/core/Classes/Core/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public function getEarlyInstances()
*
* @param bool $allowCaching Whether to allow caching - affects cache_core (autoloader)
* @param string $packageManagerClassName Define an alternative package manager implementation (usually for the installer)
* @param bool $isInternalCall Set to true by boostrap, not by extensions
* @param bool $isInternalCall Set to true by bootstrap, not by extensions
* @return Bootstrap|null
* @internal This is not a public API method, do not use in own extensions
* @deprecated will be set to removed in TYPO3 v10.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Description
===========

The function :code:`isLocalconfWritable()` :code:`from \TYPO3\CMS\Core\Utility\ExtensionManagementUtility` has been removed.
The boostrap now just checks for the existence of the file and redirects to the install tool if it doesn't exist.
The bootstrap now just checks for the existence of the file and redirects to the install tool if it doesn't exist.

Impact
======
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.. include:: ../../Includes.txt

=======================================
Deprecation: #85821 - bootstrap methods
=======================================

See :issue:`85821`

Description
===========

The following methods of :php:`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:

* :php:`TYPO3\CMS\Core\Core\Bootstrap::usesComposerClassLoading()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap::getInstance()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap->configure()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap::checkIfEssentialConfigurationExists()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap->setEarlyInstance()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap->getEarlyInstance()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap->getEarlyInstances()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap::loadConfigurationAndInitialize()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap->initializePackageManagement()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap::populateLocalConfiguration()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap::disableCoreCache()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap::initializeCachingFramework()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap->setRequestType()`
* :php:`TYPO3\CMS\Core\Core\Bootstrap::setFinalCachingFrameworkCacheConfiguration()`


Impact
======

This deprecation is only interesting for code that interferes with early core bootstrap.
Those may trigger PHP :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 :php:`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 :php:`Bootstrap::init()` instead.

.. index:: PHP-API, FullyScanned
2 changes: 1 addition & 1 deletion typo3/sysext/extbase/Classes/Core/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function initializeConfiguration($configuration)
* Configures the object manager object configuration from
* config.tx_extbase.objects and plugin.tx_foo.objects
*
* @param bool $isInternalCall Set to true by Boostrap, not by extensions
* @param bool $isInternalCall Set to true by Bootstrap, not by extensions
* @see initialize()
* @deprecated since TYPO3 v9, will be removed in TYPO3 v10.0
*/
Expand Down
2 changes: 1 addition & 1 deletion typo3/sysext/fluid/Classes/Core/Widget/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function initializeConfiguration($configuration)
* Configures the object manager object configuration from
* config.tx_extbase.objects
*
* @param $isInternalCall bool Set to true by Boostrap, not by extensions
* @param $isInternalCall bool Set to true by Bootstrap, not by extensions
* @see initialize()
* @deprecated since TYPO3 v9, will be removed in TYPO3 v10.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3047,46 +3047,46 @@
'Deprecation-85804-SaltedPasswordHashClassDeprecations.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap->configure' => [
'TYPO3\CMS\Core\Core\Bootstrap->configure' => [
'numberOfMandatoryArguments' => 0,
'maximumNumberOfArguments' => 0,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap->setEarlyInstance' => [
'TYPO3\CMS\Core\Core\Bootstrap->setEarlyInstance' => [
'numberOfMandatoryArguments' => 2,
'maximumNumberOfArguments' => 2,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap->getEarlyInstance' => [
'TYPO3\CMS\Core\Core\Bootstrap->getEarlyInstance' => [
'numberOfMandatoryArguments' => 1,
'maximumNumberOfArguments' => 1,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap->getEarlyInstances' => [
'TYPO3\CMS\Core\Core\Bootstrap->getEarlyInstances' => [
'numberOfMandatoryArguments' => 0,
'maximumNumberOfArguments' => 0,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap->initializePackageManagement' => [
'TYPO3\CMS\Core\Core\Bootstrap->initializePackageManagement' => [
'numberOfMandatoryArguments' => 1,
'maximumNumberOfArguments' => 1,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap->setRequestType' => [
'TYPO3\CMS\Core\Core\Bootstrap->setRequestType' => [
'numberOfMandatoryArguments' => 1,
'maximumNumberOfArguments' => 1,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->initFEuser' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -659,60 +659,60 @@
'Deprecation-81430-TypoScriptTemplateModuleControllerrenderList.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap::usesComposerClassLoading' => [
'TYPO3\CMS\Core\Core\Bootstrap::usesComposerClassLoading' => [
'numberOfMandatoryArguments' => 0,
'maximumNumberOfArguments' => 0,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap::getInstance' => [
'TYPO3\CMS\Core\Core\Bootstrap::getInstance' => [
'numberOfMandatoryArguments' => 0,
'maximumNumberOfArguments' => 0,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap::checkIfEssentialConfigurationExists' => [
'TYPO3\CMS\Core\Core\Bootstrap::checkIfEssentialConfigurationExists' => [
'numberOfMandatoryArguments' => 0,
'maximumNumberOfArguments' => 1,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap::loadConfigurationAndInitialize' => [
'TYPO3\CMS\Core\Core\Bootstrap::loadConfigurationAndInitialize' => [
'numberOfMandatoryArguments' => 0,
'maximumNumberOfArguments' => 3,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap::populateLocalConfiguration' => [
'TYPO3\CMS\Core\Core\Bootstrap::populateLocalConfiguration' => [
'numberOfMandatoryArguments' => 0,
'maximumNumberOfArguments' => 1,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap::disableCoreCache' => [
'TYPO3\CMS\Core\Core\Bootstrap::disableCoreCache' => [
'numberOfMandatoryArguments' => 0,
'maximumNumberOfArguments' => 0,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap::initializeCachingFramework' => [
'TYPO3\CMS\Core\Core\Bootstrap::initializeCachingFramework' => [
'numberOfMandatoryArguments' => 0,
'maximumNumberOfArguments' => 1,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Core\Core\Boostrap::setFinalCachingFrameworkCacheConfiguration' => [
'TYPO3\CMS\Core\Core\Bootstrap::setFinalCachingFrameworkCacheConfiguration' => [
'numberOfMandatoryArguments' => 0,
'maximumNumberOfArguments' => 1,
'restFiles' => [
'Deprecation-85821-BoostrapMethods.rst',
'Deprecation-85821-BootstrapMethods.rst',
],
],
'TYPO3\CMS\Frontend\Page\PageGenerator::renderContent' => [
Expand Down

0 comments on commit d76373a

Please sign in to comment.