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.      * {@inheritdoc}
  19.      *
  20.      * @return void
  21.      */
  22.     public function build(ContainerBuilder $container)
  23.     {
  24.         parent::build($container);
  25.         $container->addCompilerPass(new ConfigSourcePass());
  26.         $container->addCompilerPass(new IndexPass());
  27.     }
  28. }