‪TYPO3CMS  11.5
TYPO3\CMS\Core\Core\BootService Class Reference
Inheritance diagram for TYPO3\CMS\Core\Core\BootService:
TYPO3\CMS\Install\Service\LateBootService

Public Member Functions

 __construct (ContainerBuilder $containerBuilder, ContainerInterface $failsafeContainer)
 
 getContainer (bool $allowCaching=true)
 
array makeCurrent (ContainerInterface $container=null, array $backup=[])
 
ContainerInterface loadExtLocalconfDatabaseAndExtTables (bool $resetContainer=false, bool $allowCaching=true)
 
 resetGlobalContainer ()
 
 getFailsafeContainer ()
 

Private Member Functions

 prepareContainer (bool $allowCaching=true)
 

Private Attributes

ContainerBuilder $containerBuilder
 
ContainerInterface $failsafeContainer
 
ContainerInterface $container = null
 

Detailed Description

This is NOT an API class, it is for internal use in TYPO3 core only.

Definition at line 32 of file BootService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Core\BootService::__construct ( ContainerBuilder  $containerBuilder,
ContainerInterface  $failsafeContainer 
)

Member Function Documentation

◆ getContainer()

TYPO3\CMS\Core\Core\BootService::getContainer ( bool  $allowCaching = true)

◆ getFailsafeContainer()

TYPO3\CMS\Core\Core\BootService::getFailsafeContainer ( )

◆ loadExtLocalconfDatabaseAndExtTables()

ContainerInterface TYPO3\CMS\Core\Core\BootService::loadExtLocalconfDatabaseAndExtTables ( bool  $resetContainer = false,
bool  $allowCaching = true 
)

Bootstrap a non-failsafe container and load ext_localconf

Use by actions like the database analyzer and the upgrade wizards which need additional bootstrap actions performed.

Those actions can potentially fatal if some old extension is loaded that triggers a fatal in ext_localconf or ext_tables code! Use only if really needed.

Parameters
bool$resetContainer
bool$allowCaching
Returns
‪ContainerInterface

Reimplemented in TYPO3\CMS\Install\Service\LateBootService.

Definition at line 121 of file BootService.php.

References TYPO3\CMS\Core\Core\BootService\$container, $GLOBALS, TYPO3\CMS\Core\Core\BootService\getContainer(), TYPO3\CMS\Core\Core\Bootstrap\loadBaseTca(), TYPO3\CMS\Core\Core\Bootstrap\loadExtTables(), TYPO3\CMS\Core\Core\Bootstrap\loadTypo3LoadedExtAndExtLocalconf(), TYPO3\CMS\Core\Core\BootService\makeCurrent(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\setEventDispatcher(), and TYPO3\CMS\Core\Core\Bootstrap\unsetReservedGlobalVariables().

◆ makeCurrent()

array TYPO3\CMS\Core\Core\BootService::makeCurrent ( ContainerInterface  $container = null,
array  $backup = [] 
)

Switch global context to a new context, or revert to the original booting container if no container is specified

Parameters
ContainerInterface$container
array$backup
Returns
‪array

Definition at line 85 of file BootService.php.

References TYPO3\CMS\Core\Core\BootService\$container, TYPO3\CMS\Core\Core\BootService\$failsafeContainer, and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\setPackageManager().

Referenced by TYPO3\CMS\Core\Core\BootService\loadExtLocalconfDatabaseAndExtTables(), and TYPO3\CMS\Core\Core\BootService\resetGlobalContainer().

◆ prepareContainer()

◆ resetGlobalContainer()

TYPO3\CMS\Core\Core\BootService::resetGlobalContainer ( )

Definition at line 150 of file BootService.php.

References TYPO3\CMS\Core\Core\BootService\makeCurrent().

Member Data Documentation

◆ $container

ContainerInterface TYPO3\CMS\Core\Core\BootService::$container = null
private

◆ $containerBuilder

ContainerBuilder TYPO3\CMS\Core\Core\BootService::$containerBuilder
private

Definition at line 34 of file BootService.php.

Referenced by TYPO3\CMS\Core\Core\BootService\__construct().

◆ $failsafeContainer

ContainerInterface TYPO3\CMS\Core\Core\BootService::$failsafeContainer
private