vendor/croisiland/search-bundle/CroisilandSearchBundle.php line 17

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Croisiland\Bundle\SearchBundle;
  4. use Croisiland\Bundle\SearchBundle\DependencyInjection\Compiler\ApiEntryPointCompilerPass;
  5. use Croisiland\Bundle\SearchBundle\DependencyInjection\Compiler\ApiOptionsProcessorCompilerPass;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. use Symfony\Component\HttpKernel\Bundle\Bundle;
  8. /**
  9.  * Class CroisilandSearchBundle.
  10.  *
  11.  * @author Jérôme Fath
  12.  */
  13. final class CroisilandSearchBundle extends Bundle
  14. {
  15.     /**
  16.      * {@inheritdoc}
  17.      */
  18.     public function build(ContainerBuilder $container)
  19.     {
  20.         parent::build($container);
  21.         $container
  22.             ->addCompilerPass(new ApiEntryPointCompilerPass())
  23.             ->addCompilerPass(new ApiOptionsProcessorCompilerPass())
  24.         ;
  25.     }
  26. }