JsonApiErrorResponseBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

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