PHP 클래스 Nette\Configurator

저자: David Grudl
상속: extends nette\Object
파일 보기 프로젝트 열기: nette/bootstrap 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$autowireExcludedClasses of classes which shouldn't be autowired
$defaultExtensions array
$onCompile function (Configurator $sender, DI\Compiler $compiler); Occurs after the compiler is created

보호된 프로퍼티들

프로퍼티 타입 설명
$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