vendor/friendsofsymfony/elastica-bundle/src/FOSElasticaBundle.php line 19

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the FOSElasticaBundle package.
  4. *
  5. * (c) FriendsOfSymfony <https://friendsofsymfony.github.com/>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace FOS\ElasticaBundle;
  11. use FOS\ElasticaBundle\DependencyInjection\Compiler\ConfigSourcePass;
  12. use FOS\ElasticaBundle\DependencyInjection\Compiler\IndexPass;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. class FOSElasticaBundle extends Bundle
  16. {
  17. /**
  18. * @return void
  19. */
  20. public function build(ContainerBuilder $container)
  21. {
  22. parent::build($container);
  23. $container->addCompilerPass(new ConfigSourcePass());
  24. $container->addCompilerPass(new IndexPass());
  25. }
  26. }