You are here

interface ExtensionInterface in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/dependency-injection/Extension/ExtensionInterface.php \Symfony\Component\DependencyInjection\Extension\ExtensionInterface
  2. 8 vendor/symfony/css-selector/XPath/Extension/ExtensionInterface.php \Symfony\Component\CssSelector\XPath\Extension\ExtensionInterface
Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Extension/ExtensionInterface.php \Symfony\Component\DependencyInjection\Extension\ExtensionInterface

ExtensionInterface is the interface implemented by container extension classes.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of ExtensionInterface

All classes that implement ExtensionInterface

4 files declare their use of ExtensionInterface
Bundle.php in vendor/symfony/http-kernel/Bundle/Bundle.php
BundleInterface.php in vendor/symfony/http-kernel/Bundle/BundleInterface.php
ContainerBuilder.php in vendor/symfony/dependency-injection/ContainerBuilder.php
ProjectExtension.php in vendor/symfony/dependency-injection/Tests/Fixtures/includes/ProjectExtension.php

File

vendor/symfony/dependency-injection/Extension/ExtensionInterface.php, line 21

Namespace

Symfony\Component\DependencyInjection\Extension
View source
interface ExtensionInterface {

  /**
   * Loads a specific configuration.
   *
   * @param array            $config    An array of configuration values
   * @param ContainerBuilder $container A ContainerBuilder instance
   *
   * @throws \InvalidArgumentException When provided tag is not defined in this extension
   */
  public function load(array $config, ContainerBuilder $container);

  /**
   * Returns the namespace to be used for this extension (XML namespace).
   *
   * @return string The XML namespace
   */
  public function getNamespace();

  /**
   * Returns the base path for the XSD files.
   *
   * @return string The XSD base path
   */
  public function getXsdValidationBasePath();

  /**
   * Returns the recommended alias to use in XML.
   *
   * This alias is also the mandatory prefix to use when using YAML.
   *
   * @return string The alias
   */
  public function getAlias();

}

Members

Namesort descending Modifiers Type Description Overrides
ExtensionInterface::getAlias public function Returns the recommended alias to use in XML. 2
ExtensionInterface::getNamespace public function Returns the namespace to be used for this extension (XML namespace). 2
ExtensionInterface::getXsdValidationBasePath public function Returns the base path for the XSD files. 2
ExtensionInterface::load public function Loads a specific configuration. 4