BootService

class \TYPO3\CMS\Core\Core\BootService

Table of Contents

Methods

__construct()  : mixed
getContainer()  : ContainerInterface
getFailsafeContainer()  : ContainerInterface
loadExtLocalconfDatabaseAndExtTables()  : ContainerInterface
Bootstrap a non-failsafe container and load ext_localconf
makeCurrent()  : array
Switch global context to a new context, or revert to the original booting container if no container is specified
resetGlobalContainer()  : void

Methods

__construct()

public __construct(ContainerBuilder $containerBuilder, ContainerInterface $failsafeContainer) : mixed

Parameters

$containerBuilder : ContainerBuilder
$failsafeContainer : ContainerInterface

getContainer()

public getContainer([bool $allowCaching = true ]) : ContainerInterface

Parameters

$allowCaching : bool = true

Return values

ContainerInterface

getFailsafeContainer()

public getFailsafeContainer() : ContainerInterface

Return values

ContainerInterface

loadExtLocalconfDatabaseAndExtTables()

Bootstrap a non-failsafe container and load ext_localconf

public loadExtLocalconfDatabaseAndExtTables([bool $resetContainer = false ][, bool $allowCaching = true ][, bool $loadExtTables = true ]) : ContainerInterface

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

$resetContainer : bool = false
$allowCaching : bool = true
$loadExtTables : bool = true

Return values

ContainerInterface

makeCurrent()

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

public makeCurrent([ContainerInterface|null $container = null ][, array $backup = [] ]) : array

Parameters

$container : ContainerInterface|null = null
$backup : array = []

Return values

array

resetGlobalContainer()

public resetGlobalContainer() : void
On this page