PackagistWebBundle.php 741 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;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Packagist\WebBundle\DependencyInjection\Compiler\RepositoryPass;
  15. /**
  16. * @author Jordi Boggiano <j.boggiano@seld.be>
  17. */
  18. class PackagistWebBundle extends Bundle
  19. {
  20. public function build(ContainerBuilder $container)
  21. {
  22. parent::build($container);
  23. $container->addCompilerPass(new RepositoryPass());
  24. }
  25. }