Completed
Push — master ( 709dbb...f12a68 )
by Tobias
09:11
created

BazingaGeocoderBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
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
11
namespace Bazinga\GeocoderBundle;
12
13
use Bazinga\GeocoderBundle\DependencyInjection\Compiler\AddProvidersPass;
14
use Bazinga\GeocoderBundle\DependencyInjection\Compiler\ProfilerPass;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\HttpKernel\Bundle\Bundle;
17
18
/**
19
 * @author William Durand <[email protected]>
20
 */
21
class BazingaGeocoderBundle extends Bundle
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function build(ContainerBuilder $container)
27
    {
28
        parent::build($container);
29
30
        $container->addCompilerPass(new ProfilerPass());
31
        $container->addCompilerPass(new AddProvidersPass());
32
    }
33
}
34