CompilerExtension
abstract class CompilerExtension
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 33
CompilerExtension
setCompiler(Compiler $compiler, $name)
No description
at line 44
CompilerExtension
setConfig(array $config)
No description
at line 55
array
getConfig()
Returns extension configuration.
at line 69
array
validateConfig(array $expected, array $config = null, $name = null)
Checks whether $config contains only $expected items and returns combined array.
at line 87
ContainerBuilder
getContainerBuilder()
No description
at line 98
array
loadFromFile($file)
Reads configuration from file.
at line 112
string
prefix($id)
Prepend extension name to identifier or service name.
at line 122
void
loadConfiguration()
Processes configuration data. Intended to be overridden by descendant.
at line 131
void
beforeCompile()
Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
at line 140
void
afterCompile(ClassType $class)
Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.