vendor/willdurand/geocoder-bundle/src/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.      * @return void
  25.      */
  26.     public function build(ContainerBuilder $container)
  27.     {
  28.         parent::build($container);
  29.         $container->addCompilerPass(new ProfilerPass());
  30.         $container->addCompilerPass(new AddProvidersPass());
  31.         $container->addCompilerPass(new FactoryValidatorPass());
  32.     }
  33.     /**
  34.      * {@inheritdoc}
  35.      */
  36.     public function getPath(): string
  37.     {
  38.         return \dirname(__DIR__);
  39.     }
  40. }