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 * @throws \InvalidArgumentException When provided tag is not defined in this extension
28 public function load(array $configs, ContainerBuilder $container);
31 * Returns the namespace to be used for this extension (XML namespace).
33 * @return string The XML namespace
35 public function getNamespace();
38 * Returns the base path for the XSD files.
40 * @return string The XSD base path
42 public function getXsdValidationBasePath();
45 * Returns the recommended alias to use in XML.
47 * This alias is also the mandatory prefix to use when using YAML.
49 * @return string The alias
51 public function getAlias();