Test Failed
Push — master ( 128b2b...fe48d7 )
by Ruslan
02:34
created

JsonApiErrorResponseBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Faecie\Bundle\JsonApiErrorResponseBundle;
6
7
use Faecie\Bundle\JsonApiErrorResponseBundle\DependencyInjection\Compiler\ExceptionDescriberCompilerPass;
8
use Faecie\Bundle\JsonApiErrorResponseBundle\DependencyInjection\Compiler\RemoveOverwrittenServicesCompilerPass;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\HttpKernel\Bundle\Bundle;
11
12
class JsonApiErrorResponseBundle extends Bundle
13
{
14
    public function build(ContainerBuilder $container)
15
    {
16
        parent::build($container);
17
18
        $container->addCompilerPass(new ExceptionDescriberCompilerPass());
19
        $container->addCompilerPass(new RemoveOverwrittenServicesCompilerPass());
20
    }
21
}
22