vendor/willdurand/geocoder-bundle/BazingaGeocoderBundle.php line 24

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the BazingaGeocoderBundle package.
  5.  * For the full copyright and license information, please view the LICENSE
  6.  * file that was distributed with this source code.
  7.  *
  8.  * @license    MIT License
  9.  */
  10. namespace Bazinga\GeocoderBundle;
  11. use Bazinga\GeocoderBundle\DependencyInjection\Compiler\AddProvidersPass;
  12. use Bazinga\GeocoderBundle\DependencyInjection\Compiler\FactoryValidatorPass;
  13. use Bazinga\GeocoderBundle\DependencyInjection\Compiler\ProfilerPass;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. /**
  17.  * @author William Durand <william.durand1@gmail.com>
  18.  */
  19. class BazingaGeocoderBundle extends Bundle
  20. {
  21.     /**
  22.      * {@inheritdoc}
  23.      */
  24.     public function build(ContainerBuilder $container)
  25.     {
  26.         parent::build($container);
  27.         $container->addCompilerPass(new ProfilerPass());
  28.         $container->addCompilerPass(new AddProvidersPass());
  29.         $container->addCompilerPass(new FactoryValidatorPass());
  30.     }
  31. }