|
0
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
namespace Sensio\Bundle\DistributionBundle\DependencyInjection; |
|
|
4 |
|
|
|
5 |
use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
|
6 |
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
|
|
7 |
use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
|
|
8 |
use Symfony\Component\Config\FileLocator; |
|
|
9 |
|
|
|
10 |
/** |
|
|
11 |
* SensioDistributionExtension. |
|
|
12 |
* |
|
|
13 |
* @author Marc Weistroff <marc.weistroff@sensio.com> |
|
|
14 |
*/ |
|
|
15 |
class SensioDistributionExtension extends Extension |
|
|
16 |
{ |
|
|
17 |
public function load(array $configs, ContainerBuilder $container) |
|
|
18 |
{ |
|
|
19 |
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
|
20 |
|
|
|
21 |
$loader->load('webconfigurator.xml'); |
|
|
22 |
} |
|
|
23 |
|
|
|
24 |
public function getNamespace() |
|
|
25 |
{ |
|
|
26 |
return 'http://symfony.com/schema/dic/symfony/sensiodistribution'; |
|
|
27 |
} |
|
|
28 |
|
|
|
29 |
public function getAlias() |
|
|
30 |
{ |
|
|
31 |
return 'sensio_distribution'; |
|
|
32 |
} |
|
|
33 |
} |