class ContainerFactory

Initial system DI container generator.

Properties

$defaultExtensions
string[] $autowireExcludedClasses
protected $staticParameters
protected $dynamicParameters
protected $services
protected (string|array)[] $configs

Methods

__construct()

No description

setDebugMode(bool|string|array $value)

Set parameter %debugMode%.

setTempDirectory(string $path)

Sets path to temporary directory.

addStaticParameters(array $params)

Adds new static parameters.

addDynamicParameters(array $params)

Adds new dynamic parameters.

addServices(array $services)

Add instances of services.

addConfig(string|array $config)

Adds configuration file.

createContainer(bool $initialize = true)

Returns system DI container.

string
loadContainer()

Loads system DI container class and returns its name.

void
generateContainer(Compiler $compiler)

No description

createLoader()

No description

array
generateContainerKey()

No description

string
getCacheDirectory()

No description

Details

at line 47
__construct()

No description

at line 55
ContainerFactory setDebugMode(bool|string|array $value)

Set parameter %debugMode%.

Parameters

bool|string|array $value

Return Value

ContainerFactory

at line 65
ContainerFactory setTempDirectory(string $path)

Sets path to temporary directory.

Parameters

string $path

Return Value

ContainerFactory

at line 75
ContainerFactory addStaticParameters(array $params)

Adds new static parameters.

Parameters

array $params

Return Value

ContainerFactory

at line 85
ContainerFactory addDynamicParameters(array $params)

Adds new dynamic parameters.

Parameters

array $params

Return Value

ContainerFactory

at line 95
ContainerFactory addServices(array $services)

Add instances of services.

Parameters

array $services

Return Value

ContainerFactory

at line 105
ContainerFactory addConfig(string|array $config)

Adds configuration file.

Parameters

string|array $config

Return Value

ContainerFactory

at line 115
Container createContainer(bool $initialize = true)

Returns system DI container.

Parameters

bool $initialize

Return Value

Container

at line 134
string loadContainer()

Loads system DI container class and returns its name.

Return Value

string

at line 150
void generateContainer(Compiler $compiler)

internal  
 

No description

Parameters

Compiler $compiler

Return Value

void

at line 183
protected Loader createLoader()

No description

Return Value

Loader

at line 189
protected array generateContainerKey()

No description

Return Value

array

at line 203
protected string getCacheDirectory()

No description

Return Value

string