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

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\CacheWarmupPass;
  11. use Bazinga\Bundle\HateoasBundle\DependencyInjection\Compiler\ExtensionDriverPass;
  12. use Bazinga\Bundle\HateoasBundle\DependencyInjection\Compiler\RelationProviderPass;
  13. use Bazinga\Bundle\HateoasBundle\DependencyInjection\Compiler\UrlGeneratorPass;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. class BazingaHateoasBundle extends Bundle
  17. {
  18.     /**
  19.      * {@inheritdoc}
  20.      */
  21.     public function build(ContainerBuilder $container)
  22.     {
  23.         parent::build($container);
  24.         $container->addCompilerPass(new UrlGeneratorPass());
  25.         $container->addCompilerPass(new RelationProviderPass());
  26.         $container->addCompilerPass(new ExtensionDriverPass());
  27.         $container->addCompilerPass(new CacheWarmupPass());
  28.     }
  29. }