BazingaGeocoderBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
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