Gina Next Generation
 All Classes Namespaces Files Functions Variables
EtraliGinangExtension.php
Go to the documentation of this file.
00001 <?php
00002 
00003 namespace Etrali\GinangBundle\DependencyInjection;
00004 
00005 use Symfony\Component\DependencyInjection\ContainerBuilder;
00006 use Symfony\Component\Config\FileLocator;
00007 use Symfony\Component\HttpKernel\DependencyInjection\Extension;
00008 use Symfony\Component\DependencyInjection\Loader;
00009 
00010 /**
00011  * This is the class that loads and manages your bundle configuration
00012  *
00013  * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
00014  */
00015 class EtraliGinangExtension extends Extension
00016 {
00017     /**
00018      * {@inheritDoc}
00019      */
00020     public function load(array $configs, ContainerBuilder $container)
00021     {
00022         $configuration = new Configuration();
00023         $config = $this->processConfiguration($configuration, $configs);
00024 
00025         $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
00026         $loader->load('services.xml');
00027     }
00028 }
 All Classes Namespaces Files Functions Variables