Completed
Push — master ( 13261c...e1dbe9 )
by Nikola
03:01
created

TraitorBundle   A

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
class TraitorBundle extends Bundle
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23 1
    public function getContainerExtension()
24
    {
25 1
        return new Extension();
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31 1
    public function build(ContainerBuilder $container)
32
    {
33 1
        $container->addCompilerPass(new CompilerPass(), PassConfig::TYPE_OPTIMIZE);
34 1
    }
35
}
36