class Configurator extends Object

Initial system DI container generator.

Constants

AUTO

deprecated DEVELOPMENT

deprecated PRODUCTION

deprecated NONE

COOKIE_SECRET

Properties

callable[] $onCompile
array $defaultExtensions
protected array $parameters
protected array $files
bool $debugMode
write-only $tempDirectory

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.

array
getDefaultParameters()

No description

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

No description

RobotLoader
createRobotLoader()

No description

addConfig($file, $section = NULL)

Adds configuration file.

SystemContainer|Container
createContainer()

Returns system DI container.

ContainerFactory
createContainerFactory()

No description

getCacheDirectory()

No description

static bool
detectDebugMode($list = NULL)

Detects debug mode by IP address.

Details

at line 53
__construct()

No description

at line 64
Configurator setDebugMode($value)

Set parameter %debugMode%.

Parameters

$value

Return Value

Configurator

at line 80
bool isDebugMode()

No description

Return Value

bool

at line 90
Configurator setTempDirectory($path)

Sets path to temporary directory.

Parameters

$path

Return Value

Configurator

at line 101
Configurator addParameters(array $params)

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

Parameters

array $params

Return Value

Configurator

at line 111
protected array getDefaultParameters()

No description

Return Value

array

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

No description

Parameters

$logDirectory
$email

Return Value

void

at line 149
RobotLoader createRobotLoader()

No description

Return Value

RobotLoader

Exceptions

NotSupportedException

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

Adds configuration file.

Parameters

$file
$section

Return Value

Configurator

at line 186
SystemContainer|Container createContainer()

Returns system DI container.

Return Value

SystemContainer|Container

at line 200
protected ContainerFactory createContainerFactory()

No description

Return Value

ContainerFactory

at line 226
protected getCacheDirectory()

No description

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

Detects debug mode by IP address.

Parameters

$list

Return Value

bool