PHP Класс Nette\DI\CompilerExtension

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

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

Свойство Тип Описание
$compiler Compiler
$config array
$name string

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

Метод Описание
afterCompile ( ClassType $class ) : void Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.
beforeCompile ( ) : void Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
getConfig ( ) : array Returns extension configuration.
getContainerBuilder ( ) : ContainerBuilder
loadConfiguration ( ) : void Processes configuration data. Intended to be overridden by descendant.
loadFromFile ( $file ) : array Reads configuration from file.
prefix ( $id ) : string Prepend extension name to identifier or service name.
setCompiler ( Compiler $compiler, $name )
setConfig ( array $config )
validateConfig ( array $expected, array $config = NULL, $name = NULL ) : array Checks whether $config contains only $expected items and returns combined array.

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

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

Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.
public afterCompile ( ClassType $class ) : void
$class Nette\PhpGenerator\ClassType
Результат void

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

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
public beforeCompile ( ) : void
Результат void

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

Returns extension configuration.
public getConfig ( ) : array
Результат array

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

public getContainerBuilder ( ) : ContainerBuilder
Результат ContainerBuilder

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

Processes configuration data. Intended to be overridden by descendant.
public loadConfiguration ( ) : void
Результат void

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

Reads configuration from file.
public loadFromFile ( $file ) : array
Результат array

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

Prepend extension name to identifier or service name.
public prefix ( $id ) : string
Результат string

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

public setCompiler ( Compiler $compiler, $name )
$compiler Compiler

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

public setConfig ( array $config )
$config array

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

Checks whether $config contains only $expected items and returns combined array.
public validateConfig ( array $expected, array $config = NULL, $name = NULL ) : array
$expected array
$config array
Результат array

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

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

protected Compiler,Nette\DI $compiler
Результат Compiler

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

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

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

protected string $name
Результат string