abstract class CompilerExtension extends Object

Configurator compiling extension.

Properties

protected Compiler $compiler
protected string $name
array read-only $config
ContainerBuilder read-only $containerBuilder

Methods

setCompiler(Compiler $compiler, $name)

No description

array
getConfig(array $defaults = NULL)

Returns extension configuration.

array
loadFromFile($file)

Reads configuration from file.

string
prefix($id)

Prepend extension name to identifier or service name.

void
loadConfiguration()

Processes configuration data. Intended to be overridden by descendant.

void
beforeCompile()

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.

void
afterCompile(ClassType $class)

Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.

Details

at line 29
setCompiler(Compiler $compiler, $name)

No description

Parameters

Compiler $compiler
$name

at line 42
array getConfig(array $defaults = NULL)

Returns extension configuration.

Parameters

array $defaults

Return Value

array

at line 54
ContainerBuilder getContainerBuilder()

No description

Return Value

ContainerBuilder

at line 65
array loadFromFile($file)

Reads configuration from file.

Parameters

$file

Return Value

array

at line 82
string prefix($id)

Prepend extension name to identifier or service name.

Parameters

$id

Return Value

string

at line 92
void loadConfiguration()

Processes configuration data. Intended to be overridden by descendant.

Return Value

void

at line 101
void beforeCompile()

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.

Return Value

void

at line 110
void afterCompile(ClassType $class)

Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.

Parameters

ClassType $class

Return Value

void