Completed
Push — master ( d17154...1fc820 )
by Sullivan
11:02 queued 08:59
created

SonataTranslationBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 1
c 3
b 0
f 1
lcom 0
cbo 4
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the Sonata Project package.
5
 *
6
 * (c) Thomas Rabaix <[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 Sonata\TranslationBundle;
13
14
use Sonata\TranslationBundle\DependencyInjection\Compiler\AdminExtensionCompilerPass;
15
use Sonata\TranslationBundle\DependencyInjection\Compiler\GlobalVariablesCompilerPass;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
/**
20
 * @author Nicolas Bastien <[email protected]>
21
 */
22
class SonataTranslationBundle extends Bundle
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function build(ContainerBuilder $container)
28
    {
29
        parent::build($container);
30
31
        $container->addCompilerPass(new GlobalVariablesCompilerPass());
32
        $container->addCompilerPass(new AdminExtensionCompilerPass());
33
    }
34
}
35