BootService

Internal

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

Table of Contents

Methods

__construct()  : mixed
getContainer()  : ContainerInterface
getFailsafeContainer()  : ContainerInterface
loadExtLocalconfDatabaseAndExtTables()  : ContainerInterface
Bootstrap a non-failsafe container and load ext_localconf
makeCurrent()  : array<string|int, mixed>
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 ]) : 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
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<string|int, mixed> $backup = [] ]) : array<string|int, mixed>
Parameters
$container : ContainerInterface|null = null
$backup : array<string|int, mixed> = []
Return values
array<string|int, mixed>

resetGlobalContainer()

public resetGlobalContainer() : void

        
On this page

Search results