Classes List

Symfony\Component\DependencyInjection\Extension\ExtensionInterface

 1 
 2 
 3 
 4 
 5 
 6 
 7 
 8 
 9 
 10 
 11 
 12 
 13 
 14 
 15 
 16 
 17 
 18 
 19 
 20 
 21 
 22 
 23 
 24 
 25 
 26 
 27 
 28 
 29 
 30 
 31 
 32 
 33 
 34 
 35 
 36 
 37 
 38 
 39 
 40 
 41 
 42 
 43 
 44 
 45 
 46 
 47 
 48 
 49 
 50 
 51 
 52 
 53 
<?php

/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */


namespace Symfony\Component\DependencyInjection\Extension;

use Symfony\Component\DependencyInjection\ContainerBuilder;

/** * ExtensionInterface is the interface implemented by container extension classes. * * @author Fabien Potencier <fabien@symfony.com> */
interface ExtensionInterface
{
    /** * Loads a specific configuration. * * @throws \InvalidArgumentException When provided tag is not defined in this extension */
    public function load(array $configsContainerBuilder $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();
}