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

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the FOSElasticaBundle package.
  4. *
  5. * (c) FriendsOfSymfony <http://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 FOS\ElasticaBundle\DependencyInjection\Compiler\RegisterPagerPersistersPass;
  14. use FOS\ElasticaBundle\DependencyInjection\Compiler\TransformerPass;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. use FOS\ElasticaBundle\DependencyInjection\Compiler\RegisterPagerProvidersPass;
  17. use FOS\ElasticaBundle\DependencyInjection\Compiler\RegisterPersistersPass;
  18. use Symfony\Component\HttpKernel\Bundle\Bundle;
  19. class FOSElasticaBundle extends Bundle
  20. {
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public function build(ContainerBuilder $container)
  25. {
  26. parent::build($container);
  27. $container->addCompilerPass(new ConfigSourcePass());
  28. $container->addCompilerPass(new IndexPass());
  29. $container->addCompilerPass(new RegisterPagerProvidersPass());
  30. $container->addCompilerPass(new RegisterPersistersPass());
  31. $container->addCompilerPass(new RegisterPagerPersistersPass());
  32. $container->addCompilerPass(new TransformerPass());
  33. }
  34. }