PackagistWebExtension.php 878 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of Packagist.
  4. *
  5. * (c) Jordi Boggiano <j.boggiano@seld.be>
  6. * Nils Adermann <naderman@naderman.de>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Packagist\WebBundle\DependencyInjection;
  12. use Symfony\Component\Config\FileLocator;
  13. use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\DependencyInjection\Extension;
  16. /**
  17. * @author Jordi Boggiano <j.boggiano@seld.be>
  18. */
  19. class PackagistWebExtension extends Extension
  20. {
  21. public function load(array $configs, ContainerBuilder $container)
  22. {
  23. $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
  24. $loader->load('services.yml');
  25. }
  26. }