JsonApiErrorResponseBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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 4
    public function build(ContainerBuilder $container)
15
    {
16 4
        parent::build($container);
17
18 4
        $container->addCompilerPass(new ExceptionDescriberCompilerPass());
19 4
        $container->addCompilerPass(new RemoveOverwrittenServicesCompilerPass());
20 4
    }
21
}
22