vendor/willdurand/hateoas-bundle/BazingaHateoasBundle.php line 21

Open in your IDE?
  1. <?php
  2. /**
  3. * This file is part of the HateoasBundle package.
  4. * For the full copyright and license information, please view the LICENSE
  5. * file that was distributed with this source code.
  6. *
  7. * @license MIT License
  8. */
  9. namespace Bazinga\Bundle\HateoasBundle;
  10. use Bazinga\Bundle\HateoasBundle\DependencyInjection\Compiler\AttributeDriverPass;
  11. use Bazinga\Bundle\HateoasBundle\DependencyInjection\Compiler\CacheWarmupPass;
  12. use Bazinga\Bundle\HateoasBundle\DependencyInjection\Compiler\ExtensionDriverPass;
  13. use Bazinga\Bundle\HateoasBundle\DependencyInjection\Compiler\RelationProviderPass;
  14. use Bazinga\Bundle\HateoasBundle\DependencyInjection\Compiler\UrlGeneratorPass;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. use Symfony\Component\HttpKernel\Bundle\Bundle;
  17. class BazingaHateoasBundle extends Bundle
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function build(ContainerBuilder $container)
  23. {
  24. parent::build($container);
  25. $container->addCompilerPass(new UrlGeneratorPass());
  26. $container->addCompilerPass(new RelationProviderPass());
  27. $container->addCompilerPass(new AttributeDriverPass());
  28. $container->addCompilerPass(new ExtensionDriverPass());
  29. $container->addCompilerPass(new CacheWarmupPass());
  30. }
  31. }