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

PostmanGeneratorBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 1
c 3
b 0
f 1
lcom 0
cbo 4
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 5 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