interface ExtensionInterface
Same name in this branch
- 11.1.x vendor/twig/twig/src/Extension/ExtensionInterface.php \Twig\Extension\ExtensionInterface
- 11.1.x vendor/symfony/css-selector/XPath/Extension/ExtensionInterface.php \Symfony\Component\CssSelector\XPath\Extension\ExtensionInterface
ExtensionInterface is the interface implemented by container extension classes.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- interface \Symfony\Component\DependencyInjection\Extension\ExtensionInterface
Expanded class hierarchy of ExtensionInterface
All classes that implement ExtensionInterface
10 files declare their use of ExtensionInterface
- AbstractBundle.php in vendor/
symfony/ http-kernel/ Bundle/ AbstractBundle.php - 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 - ContainerConfigurator.php in vendor/
symfony/ dependency-injection/ Loader/ Configurator/ ContainerConfigurator.php
File
-
vendor/
symfony/ dependency-injection/ Extension/ ExtensionInterface.php, line 21
Namespace
Symfony\Component\DependencyInjection\ExtensionView source
interface ExtensionInterface {
/**
* Loads a specific configuration.
*
* @param array<array<mixed>> $configs
*
* @return void
*
* @throws \InvalidArgumentException When provided tag is not defined in this extension
*/
public function load(array $configs, ContainerBuilder $container);
/**
* Returns the namespace to be used for this extension (XML namespace).
*
* @return string
*/
public function getNamespace();
/**
* Returns the base path for the XSD files.
*
* @return string|false
*/
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
*/
public function getAlias();
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ExtensionInterface::getAlias | public | function | Returns the recommended alias to use in XML. | 1 |
ExtensionInterface::getNamespace | public | function | Returns the namespace to be used for this extension (XML namespace). | 1 |
ExtensionInterface::getXsdValidationBasePath | public | function | Returns the base path for the XSD files. | 1 |
ExtensionInterface::load | public | function | Loads a specific configuration. | 3 |