SensioDistributionExtension.php 888B

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