2010-01-04 14:26:20 +00:00
|
|
|
<?php
|
|
|
|
|
2010-08-20 22:09:55 +01:00
|
|
|
namespace Symfony\Component\DependencyInjection\Extension;
|
2010-01-04 14:26:20 +00:00
|
|
|
|
2010-08-20 22:09:55 +01:00
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
2010-06-07 06:57:01 +01:00
|
|
|
|
2010-01-04 14:26:20 +00:00
|
|
|
/*
|
2010-04-07 01:51:29 +01:00
|
|
|
* This file is part of the Symfony framework.
|
2010-01-04 14:26:20 +00:00
|
|
|
*
|
|
|
|
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
|
|
*
|
|
|
|
* This source file is subject to the MIT license that is bundled
|
|
|
|
* with this source code in the file LICENSE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2010-07-16 08:12:58 +01:00
|
|
|
* ExtensionInterface is the interface implemented by container extension classes.
|
2010-01-04 14:26:20 +00:00
|
|
|
*
|
|
|
|
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
|
|
*/
|
2010-07-16 08:12:58 +01:00
|
|
|
interface ExtensionInterface
|
2010-01-04 14:26:20 +00:00
|
|
|
{
|
2010-05-06 12:25:53 +01:00
|
|
|
/**
|
|
|
|
* Loads a specific configuration.
|
|
|
|
*
|
2010-07-15 14:11:33 +01:00
|
|
|
* @param string $tag The tag name
|
|
|
|
* @param array $config An array of configuration values
|
|
|
|
* @param ContainerBuilder $configuration A ContainerBuilder instance
|
2010-05-06 12:25:53 +01:00
|
|
|
*
|
2010-07-15 14:11:33 +01:00
|
|
|
* @return ContainerBuilder A ContainerBuilder instance
|
2010-06-07 06:57:01 +01:00
|
|
|
*
|
|
|
|
* @throws \InvalidArgumentException When provided tag is not defined in this extension
|
2010-05-06 12:25:53 +01:00
|
|
|
*/
|
2010-07-15 14:11:33 +01:00
|
|
|
public function load($tag, array $config, ContainerBuilder $configuration);
|
2010-01-04 14:26:20 +00:00
|
|
|
|
2010-05-06 12:25:53 +01:00
|
|
|
/**
|
|
|
|
* Returns the namespace to be used for this extension (XML namespace).
|
|
|
|
*
|
|
|
|
* @return string The XML namespace
|
|
|
|
*/
|
|
|
|
public function getNamespace();
|
2010-01-11 14:56:49 +00:00
|
|
|
|
2010-05-06 12:25:53 +01:00
|
|
|
/**
|
|
|
|
* Returns the base path for the XSD files.
|
|
|
|
*
|
|
|
|
* @return string The XSD base path
|
|
|
|
*/
|
|
|
|
public function getXsdValidationBasePath();
|
2010-02-13 09:39:35 +00:00
|
|
|
|
2010-05-06 12:25:53 +01:00
|
|
|
/**
|
|
|
|
* 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();
|
2010-01-04 14:26:20 +00:00
|
|
|
}
|