class Configurator

Initial system DI container generator.

Constants

AUTO

NONE

COOKIE_SECRET

Properties

callable[] $onCompile
array $defaultExtensions
string[] $autowireExcludedClasses
protected array $parameters
protected array $dynamicParameters
protected array $services
protected array $files

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)

Adds new parameters. The %params% will be expanded.

addDynamicParameters(array $params)

Adds new dynamic parameters.

addServices(array $services)

Add instances of services.

array
getDefaultParameters()

No description

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

No description

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

Alias for enableTracy()

RobotLoader
createRobotLoader()

No description

addConfig(string|array $file)

Adds configuration file.

Container
createContainer()

Returns system DI container.

string
loadContainer()

Loads system DI container class and returns its name.

string
generateContainer(Compiler $compiler)

No description

Loader
createLoader()

No description

string
getCacheDirectory()

No description

array
fixCompatibility($config)

Back compatibility with < v2.3

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

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

Details

at line 69
__construct()

No description

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

Set parameter %debugMode%.

Parameters

bool|string|array $value

Return Value

Configurator

at line 96
bool isDebugMode()

No description

Return Value

bool

at line 107
Configurator setTempDirectory(string $path)

Sets path to temporary directory.

Parameters

string $path

Return Value

Configurator

at line 119
Configurator setTimeZone(string $timezone)

Sets the default timezone.

Parameters

string $timezone

Return Value

Configurator

at line 131
Configurator addParameters(array $params)

Adds new parameters. The %params% will be expanded.

Parameters

array $params

Return Value

Configurator

at line 142
Configurator addDynamicParameters(array $params)

Adds new dynamic parameters.

Parameters

array $params

Return Value

Configurator

at line 153
Configurator addServices(array $services)

Add instances of services.

Parameters

array $services

Return Value

Configurator

at line 163
protected array getDefaultParameters()

No description

Return Value

array

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

No description

Parameters

string $logDirectory
string $email

Return Value

void

at line 195
void enableDebugger(string $logDirectory = null, string $email = null)

Alias for enableTracy()

Parameters

string $logDirectory
string $email

Return Value

void

at line 207
RobotLoader createRobotLoader()

No description

Return Value

RobotLoader

Exceptions

NotSupportedException

at line 225
Configurator addConfig(string|array $file)

Adds configuration file.

Parameters

string|array $file

Return Value

Configurator

at line 240
Container createContainer()

Returns system DI container.

Return Value

Container

at line 259
string loadContainer()

Loads system DI container class and returns its name.

Return Value

string

at line 277
string generateContainer(Compiler $compiler)

internal  
 

No description

Parameters

Compiler $compiler

Return Value

string

at line 314
protected Loader createLoader()

No description

Return Value

Loader

at line 323
protected string getCacheDirectory()

No description

Return Value

string

at line 338
protected array fixCompatibility($config)

Back compatibility with < v2.3

Parameters

$config

Return Value

array

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

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

Parameters

string|array $list

Return Value

bool

Traits

SmartObject