PayseraApiBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 21
ccs 13
cts 13
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 18 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Paysera\Bundle\ApiBundle;
5
6
use Paysera\Component\DependencyInjection\AddTaggedCompilerPass;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
class PayseraApiBundle extends Bundle
11
{
12 96
    public function build(ContainerBuilder $container)
13
    {
14 96
        parent::build($container);
15
16 96
        $container->addCompilerPass(new AddTaggedCompilerPass(
17 96
            'paysera_api.rest_request_options_registry',
18 96
            'paysera_api.request_options',
19 96
            'registerRestRequestOptions',
20 96
            ['controller']
21
        ));
22
23 96
        $container->addCompilerPass(new AddTaggedCompilerPass(
24 96
            'paysera_api.path_attribute_resolver_registry',
25 96
            'paysera_api.path_attribute_resolver',
26 96
            'registerPathAttributeResolver',
27 96
            ['type']
28
        ));
29 96
    }
30
}
31