abstract class ConfigurableExtension

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>

Hierarchy

Expanded class hierarchy of ConfigurableExtension

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/DependencyInjection/ConfigurableExtension.php, line 28

Namespace

Symfony\Component\HttpKernel\DependencyInjection
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurableExtension::load final public function Loads a specific configuration. Overrides ExtensionInterface::load
ConfigurableExtension::loadInternal abstract protected function Configures the passed container according to the merged configuration.
Extension::$classes private property
Extension::addClassesToCompile public function Adds classes to the class cache.
Extension::getAlias public function Returns the recommended alias to use in XML. Overrides ExtensionInterface::getAlias
Extension::getClassesToCompile public function Gets the classes to cache.
Extension::getConfiguration public function Returns extension configuration Overrides ConfigurationExtensionInterface::getConfiguration
Extension::getNamespace public function Returns the namespace to be used for this extension (XML namespace). Overrides ExtensionInterface::getNamespace
Extension::getXsdValidationBasePath public function Returns the base path for the XSD files. Overrides ExtensionInterface::getXsdValidationBasePath
Extension::processConfiguration final protected function