Completed
Pull Request — develop (#605)
by
unknown
14:48
created

GravitonProxyApiBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Graviton ProxyApi Bundle
4
 */
5
namespace Graviton\ProxyApiBundle;
6
7
use Graviton\ProxyApiBundle\DependencyInjection\Compiler\ServicesCompilerPass;
8
use Symfony\Component\DependencyInjection\ContainerBuilder;
9
use Symfony\Component\HttpKernel\Bundle\Bundle;
10
11
/**
12
 * Bundle for ProxyApi
13
 *
14
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
15
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
16
 * @link     http://swisscom.ch
17
 */
18
class GravitonProxyApiBundle extends Bundle
19
{
20
21
    /**
22
     * load compiler pass
23
     *
24
     * @param ContainerBuilder $container container builder
25
     *
26
     * @return void
27
     */
28 2
    public function build(ContainerBuilder $container)
29
    {
30 2
        parent::build($container);
31
32 2
        $container->addCompilerPass(new ServicesCompilerPass());
33 2
    }
34
}
35