ConfigurableExtension
extends Extension
in package
This extension sub-class provides first-class integration with the Config/Definition Component.
You can use this as base class if
a) you use the Config/Definition component for configuration, b) your configuration class is named "Configuration", and c) the configuration class resides in the DependencyInjection sub-folder.
Tags
Table of Contents
- $annotatedClasses : mixed
- $classes : mixed
- addAnnotatedClassesToCompile() : mixed
- Adds annotated classes to the class cache.
- addClassesToCompile() : mixed
- Adds classes to the class cache.
- getAnnotatedClassesToCompile() : array<string|int, mixed>
- Gets the annotated classes to cache.
- getClassesToCompile() : array<string|int, mixed>
- Gets the classes to cache.
- load() : mixed
- {@inheritdoc}
- loadInternal() : mixed
- Configures the passed container according to the merged configuration.
Properties
$annotatedClasses
private
mixed
$annotatedClasses
= []
$classes
private
mixed
$classes
= []
Methods
addAnnotatedClassesToCompile()
Adds annotated classes to the class cache.
public
addAnnotatedClassesToCompile(array<string|int, mixed> $annotatedClasses) : mixed
Parameters
- $annotatedClasses : array<string|int, mixed>
-
An array of class patterns
Return values
mixed —addClassesToCompile()
Adds classes to the class cache.
public
addClassesToCompile(array<string|int, mixed> $classes) : mixed
Parameters
- $classes : array<string|int, mixed>
-
An array of class patterns
Tags
Return values
mixed —getAnnotatedClassesToCompile()
Gets the annotated classes to cache.
public
getAnnotatedClassesToCompile() : array<string|int, mixed>
Return values
array<string|int, mixed> —An array of classes
getClassesToCompile()
Gets the classes to cache.
public
getClassesToCompile() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —An array of classes
load()
{@inheritdoc}
public
final load(array<string|int, mixed> $configs, ContainerBuilder $container) : mixed
Parameters
- $configs : array<string|int, mixed>
- $container : ContainerBuilder
Return values
mixed —loadInternal()
Configures the passed container according to the merged configuration.
protected
abstract loadInternal(array<string|int, mixed> $mergedConfig, ContainerBuilder $container) : mixed
Parameters
- $mergedConfig : array<string|int, mixed>
- $container : ContainerBuilder