Code

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