CompilerExtension
abstract class CompilerExtension extends Object
Configurator compiling extension.
Properties
protected Compiler | $compiler | ||
protected string | $name | ||
protected array | $config |
Methods
No description
Returns extension configuration.
Checks whether $config contains only $expected items and returns combined array.
No description
Reads configuration from file.
Prepend extension name to identifier or service name.
Processes configuration data. Intended to be overridden by descendant.
Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.
Details
at line 28
setCompiler(Compiler $compiler, $name)
No description
at line 36
setConfig(array $config)
No description
at line 47
array
getConfig()
Returns extension configuration.
at line 61
array
validateConfig(array $expected, array $config = NULL, $name = NULL)
Checks whether $config contains only $expected items and returns combined array.
at line 79
ContainerBuilder
getContainerBuilder()
No description
at line 90
array
loadFromFile($file)
Reads configuration from file.
at line 104
string
prefix($id)
Prepend extension name to identifier or service name.
at line 114
void
loadConfiguration()
Processes configuration data. Intended to be overridden by descendant.
at line 123
void
beforeCompile()
Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
at line 132
void
afterCompile(ClassType $class)
Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.