BenatEspinaI18nRoutingBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the I18n Routing Bundle.
5
 *
6
 * (c) Beñat Espiña <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace BenatEspina\I18nRoutingBundle;
13
14
use BenatEspina\I18nRoutingBundle\DependencyInjection\Compiler\RegistryParametersResolversPass;
15
use BenatEspina\I18nRoutingBundle\DependencyInjection\Compiler\SetNotFoundLocaleResolverPass;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
/**
20
 * @author Beñat Espiña <[email protected]>
21
 */
22
class BenatEspinaI18nRoutingBundle extends Bundle
23
{
24
    public function build(ContainerBuilder $container)
25
    {
26
        $container->addCompilerPass(new RegistryParametersResolversPass());
27
        $container->addCompilerPass(new SetNotFoundLocaleResolverPass());
28
    }
29
}
30