‪TYPO3CMS  10.4
TYPO3\CMS\Install\Service\LateBootService Class Reference

Public Member Functions

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

Private Member Functions

ContainerInterface prepareContainer ()
 

Private Attributes

ContainerBuilder $containerBuilder
 
ContainerInterface $failsafeContainer
 
ContainerInterface $container
 

Detailed Description

This is NOT an API class, it is for internal use in the install tool only.

Definition at line 33 of file LateBootService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Service\LateBootService::__construct ( ContainerBuilder  $containerBuilder,
ContainerInterface  $failsafeContainer 
)
Parameters
ContainerBuilder$containerBuilder
ContainerInterface$failsafeContainer

Definition at line 51 of file LateBootService.php.

References TYPO3\CMS\Install\Service\LateBootService\$containerBuilder, and TYPO3\CMS\Install\Service\LateBootService\$failsafeContainer.

Member Function Documentation

◆ getContainer()

ContainerInterface TYPO3\CMS\Install\Service\LateBootService::getContainer ( )

◆ loadExtLocalconfDatabaseAndExtTables()

ContainerInterface TYPO3\CMS\Install\Service\LateBootService::loadExtLocalconfDatabaseAndExtTables ( bool  $resetContainer = 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
Returns
‪ContainerInterface

Definition at line 123 of file LateBootService.php.

References TYPO3\CMS\Install\Service\LateBootService\$container, TYPO3\CMS\Install\Service\LateBootService\getContainer(), TYPO3\CMS\Core\Core\Bootstrap\loadBaseTca(), TYPO3\CMS\Core\Core\Bootstrap\loadExtTables(), TYPO3\CMS\Core\Core\Bootstrap\loadTypo3LoadedExtAndExtLocalconf(), TYPO3\CMS\Install\Service\LateBootService\makeCurrent(), TYPO3\CMS\Core\Page\PageRenderer\setCache(), TYPO3\CMS\Core\Imaging\IconRegistry\setCache(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\setEventDispatcher(), and TYPO3\CMS\Core\Core\Bootstrap\unsetReservedGlobalVariables().

◆ makeCurrent()

array TYPO3\CMS\Install\Service\LateBootService::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 88 of file LateBootService.php.

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

Referenced by TYPO3\CMS\Install\Service\LateBootService\loadExtLocalconfDatabaseAndExtTables(), and TYPO3\CMS\Install\Service\LateBootService\resetGlobalContainer().

◆ prepareContainer()

ContainerInterface TYPO3\CMS\Install\Service\LateBootService::prepareContainer ( )
private
Returns
‪ContainerInterface

Definition at line 68 of file LateBootService.php.

Referenced by TYPO3\CMS\Install\Service\LateBootService\getContainer().

◆ resetGlobalContainer()

TYPO3\CMS\Install\Service\LateBootService::resetGlobalContainer ( )

Member Data Documentation

◆ $container

ContainerInterface TYPO3\CMS\Install\Service\LateBootService::$container
private

◆ $containerBuilder

ContainerBuilder TYPO3\CMS\Install\Service\LateBootService::$containerBuilder
private

◆ $failsafeContainer

ContainerInterface TYPO3\CMS\Install\Service\LateBootService::$failsafeContainer
private