Mercurial > hg > dml-open-vis
annotate src/DML/MainVisBundle/DependencyInjection/DMLMainVisExtension.php @ 0:493bcb69166c
added public content
author | Daniel Wolff |
---|---|
date | Tue, 09 Feb 2016 20:54:02 +0100 |
parents | |
children |
rev | line source |
---|---|
Daniel@0 | 1 <?php |
Daniel@0 | 2 |
Daniel@0 | 3 namespace DML\MainVisBundle\DependencyInjection; |
Daniel@0 | 4 |
Daniel@0 | 5 use Symfony\Component\DependencyInjection\ContainerBuilder; |
Daniel@0 | 6 use Symfony\Component\Config\FileLocator; |
Daniel@0 | 7 use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
Daniel@0 | 8 use Symfony\Component\DependencyInjection\Loader; |
Daniel@0 | 9 |
Daniel@0 | 10 /** |
Daniel@0 | 11 * This is the class that loads and manages your bundle configuration |
Daniel@0 | 12 * |
Daniel@0 | 13 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} |
Daniel@0 | 14 */ |
Daniel@0 | 15 class DMLMainVisExtension extends Extension |
Daniel@0 | 16 { |
Daniel@0 | 17 /** |
Daniel@0 | 18 * {@inheritdoc} |
Daniel@0 | 19 */ |
Daniel@0 | 20 public function load(array $configs, ContainerBuilder $container) |
Daniel@0 | 21 { |
Daniel@0 | 22 $configuration = new Configuration(); |
Daniel@0 | 23 $config = $this->processConfiguration($configuration, $configs); |
Daniel@0 | 24 |
Daniel@0 | 25 $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
Daniel@0 | 26 $loader->load('services.xml'); |
Daniel@0 | 27 } |
Daniel@0 | 28 } |