CompilerExtension
abstract class CompilerExtension
Configurator compiling extension.
Properties
protected Compiler | $compiler | ||
protected string | $name | ||
protected array|object | $config | ||
protected Closure | $initialization |
Methods
No description
Returns extension configuration.
Returns configuration schema.
Checks whether $config contains only $expected items and returns combined array.
No description
Reads configuration from file.
Loads list of service definitions from configuration.
No description
No description
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 36
CompilerExtension
setCompiler(Compiler $compiler, string $name)
No description
at line 49
CompilerExtension
setConfig(array|object $config)
No description
at line 64
array|object
getConfig()
Returns extension configuration.
at line 73
Schema
getConfigSchema()
Returns configuration schema.
at line 86
array
validateConfig(array $expected, array|null $config = null, string|null $name = null)
deprecated
deprecated
Checks whether $config contains only $expected items and returns combined array.
at line 106
ContainerBuilder
getContainerBuilder()
No description
at line 115
array
loadFromFile(string $file)
Reads configuration from file.
at line 128
void
loadDefinitionsFromConfig(array $configList)
Loads list of service definitions from configuration.
Prefixes its names and replaces @extension with name in definition.
at line 140
protected Loader
createLoader()
No description
at line 146
Closure
getInitialization()
No description
at line 155
string
prefix(string $id)
Prepend extension name to identifier or service name.
at line 165
void
loadConfiguration()
Processes configuration data. Intended to be overridden by descendant.
at line 174
void
beforeCompile()
Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
at line 183
void
afterCompile(ClassType $class)
Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.
Traits
Strict class for better experience.