‪TYPO3CMS  ‪main
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)
 
 makeCurrent (ContainerInterface $container=null, array $backup=[])
 
 loadExtLocalconfDatabaseAndExtTables (bool $resetContainer=false, bool $allowCaching=true, bool $loadExtTables=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 34 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()

TYPO3\CMS\Core\Core\BootService::loadExtLocalconfDatabaseAndExtTables ( bool  $resetContainer = false,
bool  $allowCaching = true,
bool  $loadExtTables = 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

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

Definition at line 118 of file BootService.php.

References TYPO3\CMS\Core\Core\BootService\$container, $GLOBALS, TYPO3\CMS\Core\Core\BootService\getContainer(), TYPO3\CMS\Core\Core\BootService\makeCurrent(), and TYPO3\CMS\Core\Core\Bootstrap\unsetReservedGlobalVariables().

◆ makeCurrent()

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

◆ prepareContainer()

◆ resetGlobalContainer()

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

Definition at line 157 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 36 of file BootService.php.

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

◆ $failsafeContainer

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