‪TYPO3CMS  9.5
TYPO3\CMS\Core\Core\Bootstrap Class Reference

Public Member Functions

Bootstrap configure ()
 
 setEarlyInstance ($objectName, $instance)
 
object getEarlyInstance ($objectName)
 
array getEarlyInstances ()
 
Bootstrap initializePackageManagement ($packageManagerClassName)
 
Bootstrap initializeCachingFramework (bool $allowCaching=true)
 
Bootstrap setRequestType ($requestType)
 
mixed __call ($methodName, array $arguments)
 

Static Public Member Functions

static ContainerInterface init (ClassLoader $classLoader, bool $failsafe=false)
 
static bool usesComposerClassLoading ()
 
static Bootstrap getInstance ()
 
static ApplicationContext createApplicationContext ()
 
static Bootstrap null startOutputBuffering ()
 
static Bootstrap baseSetup ($entryPointLevel=null)
 
static Bootstrap initializeClassLoader (ClassLoader $classLoader)
 
static Bootstrap null loadConfigurationAndInitialize ( $allowCaching=true, $packageManagerClassName=\TYPO3\CMS\Core\Package\PackageManager::class, $isInternalCall=false)
 
static PackageManager createPackageManager ($packageManagerClassName, FrontendInterface $coreCache)
 
static Bootstrap null loadTypo3LoadedExtAndExtLocalconf ($allowCaching=true, FrontendInterface $coreCache=null)
 
static ConfigurationManager createConfigurationManager ()
 
static Bootstrap null disableCoreCache ()
 
static CacheManager createCacheManager (bool $disableCaching=false)
 
static Bootstrap null unsetReservedGlobalVariables ()
 
static Bootstrap null loadBaseTca (bool $allowCaching=true, FrontendInterface $coreCache=null)
 
static Bootstrap null loadExtTables (bool $allowCaching=true)
 
static Bootstrap null initializeBackendRouter ()
 
static Bootstrap null initializeBackendUser ($className=\TYPO3\CMS\Core\Authentication\BackendUserAuthentication::class)
 
static Bootstrap null initializeBackendAuthentication ($proceedIfNoUserIsLoggedIn=false)
 
static Bootstrap null initializeLanguageObject ()
 
static mixed __callStatic ($methodName, array $arguments)
 

Protected Member Functions

 __construct ()
 
 __clone ()
 
 defineTypo3RequestTypes ()
 

Static Protected Member Functions

static bool checkIfEssentialConfigurationExists (ConfigurationManager $configurationManager=null)
 
static initializeRuntimeActivatedPackagesFromConfiguration (PackageManager $packageManager)
 
static Bootstrap populateLocalConfiguration (ConfigurationManager $configurationManager=null)
 
static setDefaultTimezone ()
 
static initializeErrorHandling ()
 
static initializeIO ()
 
static setMemoryLimit ()
 
static Bootstrap null setFinalCachingFrameworkCacheConfiguration (CacheManager $cacheManager=null)
 
static checkEncryptionKey ()
 
static runExtTablesPostProcessingHooks ()
 

Protected Attributes

array $earlyInstances = array( )
 
bool $limbo = false
 

Static Protected Attributes

static TYPO3 CMS Core Core Bootstrap $instance
 

Detailed Description

This class encapsulates bootstrap related methods. It is required directly as the very first thing in entry scripts and used to define all base things like constants and paths and so on.

Most methods in this class have dependencies to each other. They can not be called in arbitrary order. The methods are ordered top down, so a method at the beginning has lower dependencies than a method further down. Do not fiddle with the load order in own scripts except you know exactly what you are doing!

Definition at line 49 of file Bootstrap.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Core\Bootstrap::__construct ( )
protected

Disable direct creation of this object.

Definition at line 66 of file Bootstrap.php.

Referenced by TYPO3\CMS\Core\Core\Bootstrap\init().

Member Function Documentation

◆ __call()

mixed TYPO3\CMS\Core\Core\Bootstrap::__call (   $methodName,
array  $arguments 
)

Backwards compatibility for usages of now protected methods

Parameters
string$methodName
array$arguments
Exceptions

Definition at line 1024 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\Bootstrap\__callStatic().

◆ __callStatic()

static mixed TYPO3\CMS\Core\Core\Bootstrap::__callStatic (   $methodName,
array  $arguments 
)
static

Backwards compatibility for usages of now protected methods

Parameters
$methodName
array$arguments
Exceptions

Definition at line 1003 of file Bootstrap.php.

Referenced by TYPO3\CMS\Core\Core\Bootstrap\__call().

◆ __clone()

TYPO3\CMS\Core\Core\Bootstrap::__clone ( )
protected

Disable direct cloning of this object.

Definition at line 246 of file Bootstrap.php.

◆ baseSetup()

static Bootstrap TYPO3\CMS\Core\Core\Bootstrap::baseSetup (   $entryPointLevel = null)
static

Run the base setup that checks server environment, determines paths, populates base files and sets common configuration.

Script execution will be aborted if something fails here.

Parameters
int$entryPointLevel‪Number of subdirectories where the entry script is located under the document root.
Returns
Bootstrap
Exceptions

Definition at line 325 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\ClassLoadingInformation\isClassLoadingInformationAvailable(), TYPO3\CMS\Core\Core\Environment\isComposerMode(), TYPO3\CMS\Core\Core\ClassLoadingInformation\registerClassLoadingInformation(), TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\REQUESTTYPE_CLI, TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\REQUESTTYPE_FE, and TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\run().

◆ checkEncryptionKey()

static TYPO3\CMS\Core\Core\Bootstrap::checkEncryptionKey ( )
staticprotected

Check if a configuration key has been configured

Definition at line 844 of file Bootstrap.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Core\Bootstrap\configure().

◆ checkIfEssentialConfigurationExists()

static bool TYPO3\CMS\Core\Core\Bootstrap::checkIfEssentialConfigurationExists ( ConfigurationManager  $configurationManager = null)
staticprotected

checks if LocalConfiguration.php or PackageStates.php is missing, used to see if a redirect to the install tool is needed

Parameters
ConfigurationManager$configurationManager
Returns
‪bool TRUE when the essential configuration is available, otherwise FALSE

This is not a public API method, do not use in own extensions

Definition at line 388 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\Environment\getLegacyConfigPath().

◆ configure()

Bootstrap TYPO3\CMS\Core\Core\Bootstrap::configure ( )

◆ createApplicationContext()

static ApplicationContext TYPO3\CMS\Core\Core\Bootstrap::createApplicationContext ( )
static
Returns
ApplicationContext

This is not a public API method, do not use in own extensions

Deprecated:
‪will be removed in TYPO3 v10.0.

Definition at line 273 of file Bootstrap.php.

◆ createCacheManager()

static CacheManager TYPO3\CMS\Core\Core\Bootstrap::createCacheManager ( bool  $disableCaching = false)
static

Initialize caching framework, and re-initializes it (e.g. in the install tool) by recreating the instances again despite the Singleton instance

Parameters
bool$disableCaching
Returns
‪CacheManager

This is not a public API method, do not use in own extensions

Definition at line 615 of file Bootstrap.php.

References $GLOBALS.

◆ createConfigurationManager()

static ConfigurationManager TYPO3\CMS\Core\Core\Bootstrap::createConfigurationManager ( )
static

We need an early instance of the configuration manager. Since makeInstance relies on the object configuration, we create it here with new instead.

Returns
‪ConfigurationManager

Definition at line 566 of file Bootstrap.php.

◆ createPackageManager()

static PackageManager TYPO3\CMS\Core\Core\Bootstrap::createPackageManager (   $packageManagerClassName,
FrontendInterface  $coreCache 
)
static

Initializes the package system and loads the package configuration and settings provided by the packages.

Parameters
string$packageManagerClassName‪Define an alternative package manager implementation (usually for the installer)
FrontendInterface$coreCache
Returns
‪PackageManager

This is not a public API method, do not use in own extensions

Definition at line 493 of file Bootstrap.php.

◆ defineTypo3RequestTypes()

TYPO3\CMS\Core\Core\Bootstrap::defineTypo3RequestTypes ( )
protected

Define TYPO3_REQUESTTYPE* constants that can be used for developers to see if any context has been hit also see setRequestType(). Is done at the very beginning so these parameters are always available.

Note: The definition of TYPO3_REQUEST_TYPE_* constants has been moved to the SystemEnvironmentBuilder and is included here for backwards compatibility reasons (as Bootstrap::getInstance() is expected to implicitly define these constants).

Deprecated:
‪with TYPO3 v9.4, will be removed in TYPO3 v10.0, once Bootstrap::getInstance is removed

Definition at line 755 of file Bootstrap.php.

Referenced by TYPO3\CMS\Core\Core\Bootstrap\getInstance().

◆ disableCoreCache()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::disableCoreCache ( )
static

Set cache_core to null backend, effectively disabling eg. the cache for ext_localconf and PackageManager etc. Used in unit tests.

Returns
‪Bootstrap|null

This is not a public API method, do not use in own extensions

Deprecated:
‪as this workaround is not needed anymore. Will be removed in TYPO3 v10.0.

Definition at line 599 of file Bootstrap.php.

References $GLOBALS.

◆ getEarlyInstance()

object TYPO3\CMS\Core\Core\Bootstrap::getEarlyInstance (   $objectName)

Returns an instance which was registered earlier through setEarlyInstance()

Parameters
string$objectName‪Object name of the registered instance
Returns
‪object
Exceptions

Definition at line 423 of file Bootstrap.php.

◆ getEarlyInstances()

array TYPO3\CMS\Core\Core\Bootstrap::getEarlyInstances ( )

Returns all registered early instances indexed by object name

Returns
‪array

This is not a public API method, do not use in own extensions

Deprecated:
‪since TYPO3 9.4, will be removed in TYPO3 v10.0 as this concept of early instances is not needed anymore

Definition at line 438 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\Bootstrap\$earlyInstances.

◆ getInstance()

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

Return 'this' as singleton

Returns
Bootstrap

This is not a public API method, do not use in own extensions

Deprecated:
‪will be removed in TYPO3 v10.0. Use methods directly or create an instance, depending on your use-case.

Definition at line 257 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\Bootstrap\defineTypo3RequestTypes().

◆ init()

static ContainerInterface TYPO3\CMS\Core\Core\Bootstrap::init ( ClassLoader  $classLoader,
bool  $failsafe = false 
)
static

Bootstrap TYPO3 and return a Container that may be used to initialize an Application class.

Parameters
ClassLoader$classLoader‪an instance of the class loader
bool$failsafe‪true if no caching and a failsaife package manager should be used
Returns
‪ContainerInterface
Parameters
array$entries
string$id‪Identifier of the entry to look for.
Returns
‪bool

Method get() as specified in ContainerInterface

Parameters
string$id
Returns
‪mixed
Exceptions
NotFoundExceptionInterface

Definition at line 78 of file Bootstrap.php.

References $locales, TYPO3\CMS\Core\Core\Bootstrap\__construct(), TYPO3\CMS\Core\Localization\Locales\initialize(), TYPO3\CMS\Core\Core\ClassLoadingInformation\isClassLoadingInformationAvailable(), TYPO3\CMS\Core\Core\Environment\isComposerMode(), TYPO3\CMS\Core\Core\ClassLoadingInformation\registerClassLoadingInformation(), TYPO3\CMS\Core\Page\PageRenderer\setCache(), TYPO3\CMS\Core\Imaging\IconRegistry\setCache(), and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\setPackageManager().

◆ initializeBackendAuthentication()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::initializeBackendAuthentication (   $proceedIfNoUserIsLoggedIn = false)
static

◆ initializeBackendRouter()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::initializeBackendRouter ( )
static

Initialize the Routing for the TYPO3 Backend Loads all routes registered inside all packages and stores them inside the Router

Returns
‪Bootstrap|null

This is not a public API method, do not use in own extensions

Definition at line 898 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\Environment\getProjectPath().

Referenced by TYPO3\CMS\Backend\Middleware\BackendRouteInitialization\process(), and TYPO3\CMS\Frontend\Middleware\BackendUserAuthenticator\process().

◆ initializeBackendUser()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::initializeBackendUser (   $className = \TYPO3\CMS\Core\Authentication\BackendUserAuthentication::class)
static

Initialize backend user object in globals

Parameters
string$className‪usually \TYPO3\CMS\Core\Authentication\BackendUserAuthentication::class but can be used for CLI
Returns
‪Bootstrap|null

This is not a public API method, do not use in own extensions

Definition at line 956 of file Bootstrap.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Command\UpgradeWizardListCommand\bootstrap(), TYPO3\CMS\Install\Command\UpgradeWizardRunCommand\bootstrap(), TYPO3\CMS\Core\Tests\Acceptance\Support\Extension\BackendCoreEnvironment\bootstrapTypo3Environment(), TYPO3\CMS\Core\Console\CommandRequestHandler\handleRequest(), and TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator\process().

◆ initializeCachingFramework()

Bootstrap TYPO3\CMS\Core\Core\Bootstrap::initializeCachingFramework ( bool  $allowCaching = true)

Initialize caching framework, and re-initializes it (e.g. in the install tool) by recreating the instances again despite the Singleton instance

Parameters
bool$allowCaching
Returns
Bootstrap

This is not a public API method, do not use in own extensions

Deprecated:
‪as this workaround is not needed anymore. Will be removed in TYPO3 v10.0.

Definition at line 631 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\Bootstrap\setEarlyInstance().

◆ initializeClassLoader()

static Bootstrap TYPO3\CMS\Core\Core\Bootstrap::initializeClassLoader ( ClassLoader  $classLoader)
static

Sets the class loader to the bootstrap

Parameters
ClassLoader$classLoader‪an instance of the class loader
Returns
Bootstrap

This is not a public API method, do not use in own extensions

Definition at line 347 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\ClassLoadingInformation\setClassLoader().

◆ initializeErrorHandling()

static TYPO3\CMS\Core\Core\Bootstrap::initializeErrorHandling ( )
staticprotected

Configure and set up exception and error handling

Exceptions

Definition at line 663 of file Bootstrap.php.

References $GLOBALS.

◆ initializeIO()

static TYPO3\CMS\Core\Core\Bootstrap::initializeIO ( )
staticprotected

Initializes IO and stream wrapper related behavior.

Definition at line 719 of file Bootstrap.php.

◆ initializeLanguageObject()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::initializeLanguageObject ( )
static

Initialize language object

Returns
‪Bootstrap|null

This is not a public API method, do not use in own extensions

Definition at line 986 of file Bootstrap.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Tests\Acceptance\Support\Extension\BackendCoreEnvironment\bootstrapTypo3Environment(), TYPO3\CMS\Install\Controller\SettingsController\extensionConfigurationGetContentAction(), TYPO3\CMS\Core\Console\CommandRequestHandler\handleRequest(), TYPO3\CMS\Frontend\Middleware\BackendUserAuthenticator\process(), TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator\process(), TYPO3\CMS\Workspaces\Tests\Functional\ActionHandler\ActionHandlerTest\setUp(), TYPO3\CMS\Workspaces\Tests\Functional\Service\WorkspaceServiceTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\Domain\Repository\Localization\LocalizationRepositoryTest\setUp(), TYPO3\CMS\Linkvalidator\Tests\Functional\LinkAnalyzerTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\View\PageLayoutViewTest\setUp(), TYPO3\CMS\Recycler\Tests\Functional\Recycle\AbstractRecycleTestCase\setUp(), TYPO3\CMS\Backend\Tests\Functional\Controller\FormInlineAjaxControllerTest\setUp(), TYPO3\CMS\Core\Tests\Functional\DataHandling\Regular\Hooks\PagesTsConfigGuardTest\setUp(), TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\SecurityTest\setUp(), TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase\setUp(), TYPO3\CMS\Backend\Tests\Functional\Controller\Page\LocalizationControllerTest\setUp(), TYPO3\CMS\Form\Tests\Functional\Hooks\FormFileExtensionUpdateTest\setUp(), TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\PlainRequestTest\setUpDatabase(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\setUpDatabase(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\setUpDatabase(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LinkGeneratorTest\setUpDatabase(), TYPO3\CMS\Backend\Tests\Functional\Controller\Page\TreeControllerTest\setUpDatabase(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\TypoLinkGeneratorTest\setUpDatabase(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugLinkGeneratorTest\setUpDatabase(), TYPO3\CMS\FluidStyledContent\Tests\Functional\Rendering\SecureHtmlRenderingTest\setUpDatabase(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerSiteRequestTest\setUpDatabase(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\setUpDatabase(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\MountPointTest\setUpDatabase(), TYPO3\CMS\Core\Tests\Functional\Routing\Aspect\PersistedAliasMapperTest\setUpDatabase(), TYPO3\CMS\Core\Tests\Functional\Routing\Aspect\PersistedPatternMapperTest\setUpDatabase(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\AbstractLocalizedPagesTestCase\setUpDatabaseWithYamlPayload(), and TYPO3\CMS\Seo\Tests\Functional\HrefLang\HrefLangGeneratorTest\setUpDatabaseWithYamlPayload().

◆ initializePackageManagement()

Bootstrap TYPO3\CMS\Core\Core\Bootstrap::initializePackageManagement (   $packageManagerClassName)

Initializes the package system and loads the package configuration and settings provided by the packages.

Parameters
string$packageManagerClassName‪Define an alternative package manager implementation (usually for the installer)
Returns
Bootstrap

This is not a public API method, do not use in own extensions

Deprecated:
‪since TYPO3 v9.4, will be removed in TYPO3 v10.0. Use createPackageManager instead.

Definition at line 513 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\Bootstrap\setEarlyInstance(), and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\setPackageManager().

◆ initializeRuntimeActivatedPackagesFromConfiguration()

static TYPO3\CMS\Core\Core\Bootstrap::initializeRuntimeActivatedPackagesFromConfiguration ( PackageManager  $packageManager)
staticprotected

Activates a package during runtime. This is used in AdditionalConfiguration.php to enable extensions under conditions.

Parameters
PackageManager$packageManager

Definition at line 533 of file Bootstrap.php.

References $GLOBALS.

◆ loadBaseTca()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::loadBaseTca ( bool  $allowCaching = true,
FrontendInterface  $coreCache = null 
)
static

◆ loadConfigurationAndInitialize()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::loadConfigurationAndInitialize (   $allowCaching = true,
  $packageManagerClassName = \TYPO3\CMS\Core\Package\PackageManager::class,
  $isInternalCall = false 
)
static

Includes LocalConfiguration.php and sets several global settings depending on configuration. For functional and acceptance tests.

Parameters
bool$allowCaching‪Whether to allow caching - affects cache_core (autoloader)
string$packageManagerClassName‪Define an alternative package manager implementation (usually for the installer)
bool$isInternalCall‪Set to true by bootstrap, not by extensions
Returns
‪Bootstrap|null

This is not a public API method, do not use in own extensions

Deprecated:
‪will be set to removed in TYPO3 v10.0.

Definition at line 456 of file Bootstrap.php.

References TYPO3\CMS\Core\Localization\Locales\initialize(), and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\setPackageManager().

Referenced by TYPO3\CMS\Core\Core\Bootstrap\configure().

◆ loadExtTables()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::loadExtTables ( bool  $allowCaching = true)
static

◆ loadTypo3LoadedExtAndExtLocalconf()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::loadTypo3LoadedExtAndExtLocalconf (   $allowCaching = true,
FrontendInterface  $coreCache = null 
)
static

◆ populateLocalConfiguration()

static Bootstrap TYPO3\CMS\Core\Core\Bootstrap::populateLocalConfiguration ( ConfigurationManager  $configurationManager = null)
staticprotected

We need an early instance of the configuration manager. Since makeInstance relies on the object configuration, we create it here with new instead.

Parameters
ConfigurationManager$configurationManager
Returns
Bootstrap

This is not a public API method, do not use in own extensions

Definition at line 579 of file Bootstrap.php.

◆ runExtTablesPostProcessingHooks()

static TYPO3\CMS\Core\Core\Bootstrap::runExtTablesPostProcessingHooks ( )
staticprotected

Check for registered ext tables hooks and run them

Exceptions

Definition at line 876 of file Bootstrap.php.

References $GLOBALS.

◆ setDefaultTimezone()

static TYPO3\CMS\Core\Core\Bootstrap::setDefaultTimezone ( )
staticprotected

Set default timezone

Definition at line 642 of file Bootstrap.php.

References $GLOBALS.

◆ setEarlyInstance()

TYPO3\CMS\Core\Core\Bootstrap::setEarlyInstance (   $objectName,
  $instance 
)

Registers the instance of the specified object for an early boot stage. On finalizing the Object Manager initialization, all those instances will be transferred to the Object Manager's registry.

Parameters
string$objectName‪Object name, as later used by the Object Manager
object$instance‪The instance to register

This is not a public API method, do not use in own extensions

Deprecated:
‪since TYPO3 9.4, will be removed in TYPO3 v10.0 as this concept of early instances is not needed anymore

Definition at line 409 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\Bootstrap\$instance.

Referenced by TYPO3\CMS\Core\Core\Bootstrap\initializeCachingFramework(), and TYPO3\CMS\Core\Core\Bootstrap\initializePackageManagement().

◆ setFinalCachingFrameworkCacheConfiguration()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::setFinalCachingFrameworkCacheConfiguration ( CacheManager  $cacheManager = null)
staticprotected

Extensions may register new caches, so we set the global cache array to the manager again at this point

Parameters
CacheManager$cacheManager
Returns
‪Bootstrap|null

This is not a public API method, do not use in own extensions

Definition at line 792 of file Bootstrap.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Core\Bootstrap\configure().

◆ setMemoryLimit()

static TYPO3\CMS\Core\Core\Bootstrap::setMemoryLimit ( )
staticprotected

Set PHP memory limit depending on value of $GLOBALS['TYPO3_CONF_VARS']['SYS']['setMemoryLimit']

Definition at line 738 of file Bootstrap.php.

References $GLOBALS.

◆ setRequestType()

Bootstrap TYPO3\CMS\Core\Core\Bootstrap::setRequestType (   $requestType)

Defines the TYPO3_REQUESTTYPE constant so the environment knows which context the request is running.

Parameters
int$requestType
Exceptions

Definition at line 775 of file Bootstrap.php.

◆ startOutputBuffering()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::startOutputBuffering ( )
static

Prevent any unwanted output that may corrupt AJAX/compression. This does not interfere with "die()" or "echo"+"exit()" messages!

Returns
‪Bootstrap|null

This is not a public API method, do not use in own extensions

Definition at line 287 of file Bootstrap.php.

Referenced by TYPO3\CMS\Core\Core\Bootstrap\configure().

◆ unsetReservedGlobalVariables()

static Bootstrap null TYPO3\CMS\Core\Core\Bootstrap::unsetReservedGlobalVariables ( )
static

◆ usesComposerClassLoading()

static bool TYPO3\CMS\Core\Core\Bootstrap::usesComposerClassLoading ( )
static
Returns
‪bool
Deprecated:
‪will be removed in TYPO3 v10.0. Use the Environment API instead.

Definition at line 237 of file Bootstrap.php.

References TYPO3\CMS\Core\Core\Environment\isComposerMode().

Member Data Documentation

◆ $earlyInstances

array TYPO3\CMS\Core\Core\Bootstrap::$earlyInstances = array( )
protected

List of early instances

Definition at line 57 of file Bootstrap.php.

Referenced by TYPO3\CMS\Core\Core\Bootstrap\getEarlyInstances().

◆ $instance

TYPO3 CMS Core Core Bootstrap TYPO3\CMS\Core\Core\Bootstrap::$instance
staticprotected

Definition at line 53 of file Bootstrap.php.

Referenced by TYPO3\CMS\Core\Core\Bootstrap\setEarlyInstance().

◆ $limbo

bool TYPO3\CMS\Core\Core\Bootstrap::$limbo = false
protected

Definition at line 61 of file Bootstrap.php.