TraitorBundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 4
dl 0
loc 18
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 4 1
A build() 0 4 1
1
<?php
2
/*
3
 * This file is part of the  TraitorBundle, an RunOpenCode project.
4
 *
5
 * (c) 2017 RunOpenCode
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace RunOpenCode\Bundle\Traitor;
11
12
use RunOpenCode\Bundle\Traitor\DependencyInjection\CompilerPass;
13
use RunOpenCode\Bundle\Traitor\DependencyInjection\Extension;
14
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\HttpKernel\Bundle\Bundle;
17
18
/**
19
 * Class TraitorBundle
20
 *
21
 * @package RunOpenCode\Bundle\Traitor
22
 */
23
class TraitorBundle extends Bundle
24
{
25
    /**
26
     * {@inheritdoc}
27
     */
28 1
    public function getContainerExtension()
29
    {
30 1
        return new Extension();
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36 1
    public function build(ContainerBuilder $container)
37
    {
38 1
        $container->addCompilerPass(new CompilerPass(), PassConfig::TYPE_OPTIMIZE);
39 1
    }
40
}
41