LateBootService extends BootService

Internal

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

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<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 = false ]) : ContainerInterface
Parameters
$allowCaching : bool = false
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 = true ][, bool $allowCaching = false ]) : 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 = true
$allowCaching : bool = false
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