Completed
Push — master ( 2abfad...d301ea )
by Bernhard
20:48
created

PuliBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 11
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 8 2
1
<?php
2
3
/*
4
 * This file is part of the puli/symfony-bundle package.
5
 *
6
 * (c) Bernhard Schussek <[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 Puli\SymfonyBundle;
13
14
use Puli\SymfonyBundle\DependencyInjection\Compiler\TwigLoaderPass;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\HttpKernel\Bundle\Bundle;
17
18
/**
19
 * @since  1.0
20
 *
21
 * @author Bernhard Schussek <[email protected]>
22
 */
23
class PuliBundle extends Bundle
24
{
25 3
    public function build(ContainerBuilder $container)
26
    {
27 3
        parent::build($container);
28
29 3
        if (class_exists('Puli\TwigExtension\PuliExtension')) {
30 3
            $container->addCompilerPass(new TwigLoaderPass());
31 3
        }
32 3
    }
33
}
34