PgsHashIdBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 5 1
1
<?php
2
3
namespace Pgs\HashIdBundle;
4
5
use Pgs\HashIdBundle\DependencyInjection\Compiler\EventSubscriberCompilerPass;
6
use Pgs\HashIdBundle\DependencyInjection\Compiler\HashidsConverterCompilerPass;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
class PgsHashIdBundle extends Bundle
11
{
12 2
    public function build(ContainerBuilder $container): void
13
    {
14 2
        parent::build($container);
15 2
        $container->addCompilerPass(new HashidsConverterCompilerPass());
16 2
        $container->addCompilerPass(new EventSubscriberCompilerPass());
17 2
    }
18
}
19