BazingaGeocoderBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 5
dl 0
loc 14
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 8 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