class Configurator

Initial system DI container generator.

Constants

CookieSecret

deprecated COOKIE_SECRET

Properties

$onCompile
$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%.

bool
isDebugMode()

No description

setTempDirectory(string $path)

Sets path to temporary directory.

setTimeZone(string $timezone)

Sets the default timezone.

addParameters(array $params) deprecated

No description

addStaticParameters(array $params)

Adds new static parameters.

addDynamicParameters(array $params)

Adds new dynamic parameters.

addServices(array $services)

Add instances of services.

array
getDefaultParameters()

No description

void
enableTracy(string|null $logDirectory = null, string|null $email = null)

No description

void
enableDebugger(string|null $logDirectory = null, string|null $email = null) deprecated

No description

RobotLoader
createRobotLoader()

No description

addConfig(string|array $config)

Adds configuration file.

Container
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

Loader
createLoader()

No description

array
generateContainerKey()

No description

string
getCacheDirectory()

No description

static bool
detectDebugMode(string|array|null $list = null)

Detects debug mode by IP addresses or computer names whitelist detection.

Details

at line 73
__construct()

No description

at line 89
Configurator setDebugMode(bool|string|array $value)

Set parameter %debugMode%.

Parameters

bool|string|array $value

Return Value

Configurator

at line 101
bool isDebugMode()

No description

Return Value

bool

at line 110
Configurator setTempDirectory(string $path)

Sets path to temporary directory.

Parameters

string $path

Return Value

Configurator

at line 120
Configurator setTimeZone(string $timezone)

Sets the default timezone.

Parameters

string $timezone

Return Value

Configurator

at line 129
Configurator addParameters(array $params) deprecated

deprecated use addStaticParameters()

No description

Parameters

array $params

Return Value

Configurator

at line 138
Configurator addStaticParameters(array $params)

Adds new static parameters.

Parameters

array $params

Return Value

Configurator

at line 148
Configurator addDynamicParameters(array $params)

Adds new dynamic parameters.

Parameters

array $params

Return Value

Configurator

at line 158
Configurator addServices(array $services)

Add instances of services.

Parameters

array $services

Return Value

Configurator

at line 165
protected array getDefaultParameters()

No description

Return Value

array

at line 188
void enableTracy(string|null $logDirectory = null, string|null $email = null)

No description

Parameters

string|null $logDirectory
string|null $email

Return Value

void

at line 204
void enableDebugger(string|null $logDirectory = null, string|null $email = null) deprecated

deprecated use enableTracy()

No description

Parameters

string|null $logDirectory
string|null $email

Return Value

void

at line 213
RobotLoader createRobotLoader()

No description

Return Value

RobotLoader

Exceptions

NotSupportedException

at line 235
Configurator addConfig(string|array $config)

Adds configuration file.

Parameters

string|array $config

Return Value

Configurator

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

Returns system DI container.

Parameters

bool $initialize

Return Value

Container

at line 264
string loadContainer()

Loads system DI container class and returns its name.

Return Value

string

at line 280
void generateContainer(Compiler $compiler)

internal  
 

No description

Parameters

Compiler $compiler

Return Value

void

at line 313
protected Loader createLoader()

No description

Return Value

Loader

at line 319
protected array generateContainerKey()

No description

Return Value

array

at line 333
protected string getCacheDirectory()

No description

Return Value

string

at line 348
static bool detectDebugMode(string|array|null $list = null)

Detects debug mode by IP addresses or computer names whitelist detection.

Parameters

string|array|null $list

Return Value

bool