aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Acme/DemoBundle/DependencyInjection/AcmeDemoExtension.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Acme/DemoBundle/DependencyInjection/AcmeDemoExtension.php')
-rw-r--r--src/Acme/DemoBundle/DependencyInjection/AcmeDemoExtension.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Acme/DemoBundle/DependencyInjection/AcmeDemoExtension.php b/src/Acme/DemoBundle/DependencyInjection/AcmeDemoExtension.php
new file mode 100644
index 00000000..6dfcc822
--- /dev/null
+++ b/src/Acme/DemoBundle/DependencyInjection/AcmeDemoExtension.php
@@ -0,0 +1,22 @@
1<?php
2
3namespace Acme\DemoBundle\DependencyInjection;
4
5use Symfony\Component\DependencyInjection\ContainerBuilder;
6use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
7use Symfony\Component\HttpKernel\DependencyInjection\Extension;
8use Symfony\Component\Config\FileLocator;
9
10class AcmeDemoExtension extends Extension
11{
12 public function load(array $configs, ContainerBuilder $container)
13 {
14 $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
15 $loader->load('services.xml');
16 }
17
18 public function getAlias()
19 {
20 return 'acme_demo';
21 }
22}