ExtensionInterface is the interface implemented by container extension classes.
@author Fabien Potencier <fabien@symfony.com>
@api
Expanded class hierarchy of ExtensionInterface
All classes that implement ExtensionInterface
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
*
* @api
*/
public function load(array $config, ContainerBuilder $container);
/**
* Returns the namespace to be used for this extension (XML namespace).
*
* @return string The XML namespace
*
* @api
*/
public function getNamespace();
/**
* Returns the base path for the XSD files.
*
* @return string The XSD base path
*
* @api
*/
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
*
* @api
*/
public function getAlias();
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExtensionInterface:: |
public | function | Returns the recommended alias to use in XML. | 2 |
ExtensionInterface:: |
public | function | Returns the namespace to be used for this extension (XML namespace). | 2 |
ExtensionInterface:: |
public | function | Returns the base path for the XSD files. | 2 |
ExtensionInterface:: |
public | function | Loads a specific configuration. | 4 |