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

TraitorBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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