class Configurator

Initial system DI container generator.

Constants

CookieSecret

deprecated COOKIE_SECRET

Properties

$onCompile
$defaultExtensions
list<class-string> $autowireExcludedClasses
protected array<string,mixed> $staticParameters
protected array<string,mixed> $dynamicParameters
protected array<string,object> $services
protected list<string|array<string,mixed>> $configs

Methods

__construct()

No description

setDebugMode(bool|string|array $value)

Sets the %debugMode% parameter.

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 static parameters.

addDynamicParameters(array $params)

Adds dynamic parameters.

addServices(array $services)

Adds service instances.

array
getDefaultParameters()

No description

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

Enables Tracy debugger and configures it for the current mode.

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

No description

RobotLoader
createRobotLoader()

Creates RobotLoader for automatic class discovery and caching.

addConfig(string|array $config)

Adds a configuration file path or configuration array.

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 based on IP address or computer name matching.

Details

at line 83
__construct()

No description

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

Sets the %debugMode% parameter.

Parameters

bool|string|array $value

IP addresses or computer names whitelist, or true/false

Return Value

Configurator

at line 106
bool isDebugMode()

No description

Return Value

bool

at line 115
Configurator setTempDirectory(string $path)

Sets path to temporary directory.

Parameters

string $path

Return Value

Configurator

at line 124
Configurator setTimeZone(string $timezone)

Sets the default timezone.

Parameters

string $timezone

Return Value

Configurator

at line 136
Configurator addParameters(array $params) deprecated

deprecated use addStaticParameters()

No description

Parameters

array $params

Return Value

Configurator

at line 146
Configurator addStaticParameters(array $params)

Adds static parameters.

Parameters

array $params

Return Value

Configurator

at line 158
Configurator addDynamicParameters(array $params)

Adds dynamic parameters.

Parameters

array $params

Return Value

Configurator

at line 169
Configurator addServices(array $services)

Adds service instances.

Parameters

array $services

Return Value

Configurator

at line 177
protected array getDefaultParameters()

No description

Return Value

array

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

Enables Tracy debugger and configures it for the current mode.

Parameters

string|null $logDirectory
string|null $email

Return Value

void

at line 221
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 231
RobotLoader createRobotLoader()

Creates RobotLoader for automatic class discovery and caching.

Return Value

RobotLoader

Exceptions

NotSupportedException

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

Adds a configuration file path or configuration array.

Parameters

string|array $config

Return Value

Configurator

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

Returns system DI container.

Parameters

bool $initialize

Return Value

Container

at line 284
string loadContainer()

Loads system DI container class and returns its name.

Return Value

string

at line 300
void generateContainer(Compiler $compiler)

internal  
 

No description

Parameters

Compiler $compiler

Return Value

void

at line 336
protected Loader createLoader()

No description

Return Value

Loader

at line 343
protected array generateContainerKey()

No description

Return Value

array

at line 358
protected string getCacheDirectory()

No description

Return Value

string

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

Detects debug mode based on IP address or computer name matching.

Parameters

string|array|null $list

IP addresses or computer names whitelist

Return Value

bool