Passed
Push — master ( 4ca145...e39a6b )
by Jakub
02:24
created

Req2CmdBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Eps\Req2CmdBundle;
5
6
use Eps\Req2CmdBundle\DependencyInjection\CompilerPass\ParamMapperPass;
7
use Eps\Req2CmdBundle\DependencyInjection\Req2CmdExtension;
8
use Symfony\Component\DependencyInjection\ContainerBuilder;
9
use Symfony\Component\DependencyInjection\Extension\Extension;
10
use Symfony\Component\HttpKernel\Bundle\Bundle;
11
12
/**
13
 * @codeCoverageIgnore
14
 */
15
final class Req2CmdBundle extends Bundle
16
{
17
    public function build(ContainerBuilder $container): void
18
    {
19
        parent::build($container);
20
21
        $container->addCompilerPass(new ParamMapperPass());
22
    }
23
24
    public function getContainerExtension(): Extension
25
    {
26
        if ($this->extension === null) {
27
            $this->extension = new Req2CmdExtension();
28
        }
29
30
        return $this->extension;
31
    }
32
33
}
34