TraitorBundle::getContainerExtension()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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