BootService

class \TYPO3\CMS\Core\Core\BootService

Table of Contents

Methods

__construct()  : mixed
getContainer()  : ContainerInterface
getFailsafeContainer()  : ContainerInterface
loadExtLocalconfDatabase()  : ContainerInterface
Bootstrap a non-failsafe container and load ext_localconf.phps of all extensions.
makeCurrent()  : array
Switch global context to a new context, or revert to the original booting container if no container is specified
resetGlobalContainer()  : void
unsetInternalContainerInstance()  : 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

loadExtLocalconfDatabase()

Bootstrap a non-failsafe container and load ext_localconf.phps of all extensions.

public loadExtLocalconfDatabase([bool $resetContainer = false ][, bool $allowCaching = 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 code! Use only if really needed.

Parameters

$resetContainer : bool = false
$allowCaching : 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

unsetInternalContainerInstance()

public unsetInternalContainerInstance() : void
On this page