You are here

abstract class ConfigurableExtension in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/DependencyInjection/ConfigurableExtension.php \Symfony\Component\HttpKernel\DependencyInjection\ConfigurableExtension

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.

@author Johannes M. Schmitt <schmittjoh@gmail.com>

Hierarchy

Expanded class hierarchy of ConfigurableExtension

File

vendor/symfony/http-kernel/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($configs, $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::isConfigEnabled protected function
Extension::processConfiguration final protected function