Completed
Push — master ( 49851b...7cf45c )
by Vincent
03:23
created

PostmanGeneratorBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 3
Bugs 0 Features 1
Metric Value
c 3
b 0
f 1
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the PostmanGeneratorBundle package.
5
 *
6
 * (c) Vincent Chalamon <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace PostmanGeneratorBundle;
13
14
use PostmanGeneratorBundle\DependencyInjection\CompilerPass\CommandParserCompilerPass;
15
use PostmanGeneratorBundle\DependencyInjection\CompilerPass\RequestParserCompilerPass;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
class PostmanGeneratorBundle extends Bundle
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24 1
    public function build(ContainerBuilder $container)
25
    {
26 1
        $container->addCompilerPass(new RequestParserCompilerPass());
27 1
        $container->addCompilerPass(new CommandParserCompilerPass());
28 1
    }
29
}
30