PHP Класс Nette\Configurator

Автор: David Grudl
Наследование: extends nette\Object
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$autowireExcludedClasses of classes which shouldn't be autowired
$defaultExtensions array
$onCompile function (Configurator $sender, DI\Compiler $compiler); Occurs after the compiler is created

Защищенные свойства (Protected)

Свойство Тип Описание
$files [file|array, section]
$parameters array
$services array

Открытые методы

Метод Описание
__construct ( )
addConfig ( $file ) : self Adds configuration file.
addParameters ( array $params ) : self Adds new parameters. The %params% will be expanded.
addServices ( array $services ) : self Add instances of services.
createContainer ( ) : Container Returns system DI container.
createRobotLoader ( ) : RobotLoader
detectDebugMode ( $list = NULL ) : boolean Detects debug mode by IP address.
enableDebugger ( $logDirectory = NULL, $email = NULL ) : void
generateContainer ( Compiler $compiler ) : string
isDebugMode ( ) : boolean
loadContainer ( ) : string Loads system DI container class and returns its name.
setDebugMode ( $value ) : self Set parameter %debugMode%.
setTempDirectory ( $path ) : self Sets path to temporary directory.
setTimeZone ( $timezone ) : self Sets the default timezone.

Защищенные методы

Метод Описание
createLoader ( ) : Loader
fixCompatibility ( $config ) : array Back compatibility with < v2.3
getCacheDirectory ( )
getDefaultParameters ( ) : array

Описание методов

__construct() публичный Метод

public __construct ( )

addConfig() публичный Метод

Adds configuration file.
public addConfig ( $file ) : self
Результат self

addParameters() публичный Метод

Adds new parameters. The %params% will be expanded.
public addParameters ( array $params ) : self
$params array
Результат self

addServices() публичный Метод

Add instances of services.
public addServices ( array $services ) : self
$services array
Результат self

createContainer() публичный Метод

Returns system DI container.
public createContainer ( ) : Container
Результат Nette\DI\Container

createLoader() защищенный Метод

protected createLoader ( ) : Loader
Результат Nette\DI\Config\Loader

createRobotLoader() публичный Метод

public createRobotLoader ( ) : RobotLoader
Результат Nette\Loaders\RobotLoader

detectDebugMode() публичный статический Метод

Detects debug mode by IP address.
public static detectDebugMode ( $list = NULL ) : boolean
Результат boolean

enableDebugger() публичный Метод

public enableDebugger ( $logDirectory = NULL, $email = NULL ) : void
Результат void

fixCompatibility() защищенный Метод

Back compatibility with < v2.3
protected fixCompatibility ( $config ) : array
Результат array

generateContainer() публичный Метод

public generateContainer ( Compiler $compiler ) : string
$compiler Nette\DI\Compiler
Результат string

getCacheDirectory() защищенный Метод

protected getCacheDirectory ( )

getDefaultParameters() защищенный Метод

protected getDefaultParameters ( ) : array
Результат array

isDebugMode() публичный Метод

public isDebugMode ( ) : boolean
Результат boolean

loadContainer() публичный Метод

Loads system DI container class and returns its name.
public loadContainer ( ) : string
Результат string

setDebugMode() публичный Метод

Set parameter %debugMode%.
public setDebugMode ( $value ) : self
Результат self

setTempDirectory() публичный Метод

Sets path to temporary directory.
public setTempDirectory ( $path ) : self
Результат self

setTimeZone() публичный Метод

Sets the default timezone.
public setTimeZone ( $timezone ) : self
Результат self

Описание свойств

$autowireExcludedClasses публичное свойство

of classes which shouldn't be autowired
public $autowireExcludedClasses

$defaultExtensions публичное свойство

public array $defaultExtensions
Результат array

$files защищенное свойство

[file|array, section]
protected $files

$onCompile публичное свойство

function (Configurator $sender, DI\Compiler $compiler); Occurs after the compiler is created
public $onCompile

$parameters защищенное свойство

protected array $parameters
Результат array

$services защищенное свойство

protected array $services
Результат array