This extension sub-class provides first-class integration with the Config/Definition Component.
You can use this as base class if you
a) 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
@author Johannes M. Schmitt <schmittjoh@gmail.com>
Expanded class hierarchy of ConfigurableExtension
abstract class ConfigurableExtension extends Extension {
/**
* {@inheritDoc}
*/
public final function load(array $configs, ContainerBuilder $container) {
$this
->loadInternal($this
->processConfiguration($this
->getConfiguration(array(), $container), $configs), $container);
}
/**
* Configures the passed container according to the merged configuration.
*
* @param array $mergedConfig
* @param ContainerBuilder $container
*/
protected abstract function loadInternal(array $mergedConfig, ContainerBuilder $container);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableExtension:: |
final public | function |
Loads a specific configuration. Overrides ExtensionInterface:: |
|
ConfigurableExtension:: |
abstract protected | function | Configures the passed container according to the merged configuration. | |
Extension:: |
private | property | ||
Extension:: |
public | function | Adds classes to the class cache. | |
Extension:: |
public | function |
Returns the recommended alias to use in XML. Overrides ExtensionInterface:: |
|
Extension:: |
public | function | Gets the classes to cache. | |
Extension:: |
public | function |
Returns extension configuration Overrides ConfigurationExtensionInterface:: |
|
Extension:: |
public | function |
Returns the namespace to be used for this extension (XML namespace). Overrides ExtensionInterface:: |
|
Extension:: |
public | function |
Returns the base path for the XSD files. Overrides ExtensionInterface:: |
|
Extension:: |
protected | function | ||
Extension:: |
final protected | function |