class Configurator extends Object

Initial system DI container generator.

Constants

AUTO

NONE

COOKIE_SECRET

Properties

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

Methods

__construct()

No description

setDebugMode($value)

Set parameter %debugMode%.

bool
isDebugMode()

No description

setTempDirectory($path)

Sets path to temporary directory.

addParameters(array $params)

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

addServices(array $services)

Add instances of services.

array
getDefaultParameters()

No description

void
enableDebugger($logDirectory = NULL, $email = NULL)

No description

RobotLoader
createRobotLoader()

No description

addConfig($file, $section = NULL)

Adds configuration file.

Container
createContainer()

Returns system DI container.

string
generateContainer(Compiler $compiler)

No description

Loader
createLoader()

No description

getCacheDirectory()

No description

array
fixCompatibility($config)

Back compatibility with < v2.3

static bool
detectDebugMode($list = NULL)

Detects debug mode by IP address.

Details

at line 65
__construct()

No description

at line 76
Configurator setDebugMode($value)

Set parameter %debugMode%.

Parameters

$value

Return Value

Configurator

at line 93
bool isDebugMode()

No description

Return Value

bool

at line 103
Configurator setTempDirectory($path)

Sets path to temporary directory.

Parameters

$path

Return Value

Configurator

at line 114
Configurator addParameters(array $params)

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

Parameters

array $params

Return Value

Configurator

at line 125
Configurator addServices(array $services)

Add instances of services.

Parameters

array $services

Return Value

Configurator

at line 135
protected array getDefaultParameters()

No description

Return Value

array

at line 160
void enableDebugger($logDirectory = NULL, $email = NULL)

No description

Parameters

$logDirectory
$email

Return Value

void

at line 172
RobotLoader createRobotLoader()

No description

Return Value

RobotLoader

Exceptions

NotSupportedException

at line 189
Configurator addConfig($file, $section = NULL)

Adds configuration file.

Parameters

$file
$section

Return Value

Configurator

at line 209
Container createContainer()

Returns system DI container.

Return Value

Container

at line 236
string generateContainer(Compiler $compiler)

internal  
 

No description

Parameters

Compiler $compiler

Return Value

string

at line 278
protected Loader createLoader()

No description

Return Value

Loader

at line 284
protected getCacheDirectory()

No description

at line 301
protected array fixCompatibility($config)

Back compatibility with < v2.3

Parameters

$config

Return Value

array

at line 339
static bool detectDebugMode($list = NULL)

Detects debug mode by IP address.

Parameters

$list

Return Value

bool