4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection\Extension;
14 use Symfony\Component\DependencyInjection\ContainerBuilder;
17 * ExtensionInterface is the interface implemented by container extension classes.
19 * @author Fabien Potencier <fabien@symfony.com>
21 interface ExtensionInterface
24 * Loads a specific configuration.
26 * @param array $configs An array of configuration values
27 * @param ContainerBuilder $container A ContainerBuilder instance
29 * @throws \InvalidArgumentException When provided tag is not defined in this extension
31 public function load(array $configs, ContainerBuilder $container);
34 * Returns the namespace to be used for this extension (XML namespace).
36 * @return string The XML namespace
38 public function getNamespace();
41 * Returns the base path for the XSD files.
43 * @return string The XSD base path
45 public function getXsdValidationBasePath();
48 * Returns the recommended alias to use in XML.
50 * This alias is also the mandatory prefix to use when using YAML.
52 * @return string The alias
54 public function getAlias();