PatchManagerBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 1
1
<?php
2
3
namespace Cypress\PatchManager\Bundle;
4
5
use Cypress\PatchManager\Bundle\DependencyInjection\PatchManagerCompilerPass;
6
use Cypress\PatchManager\PatchOperationHandler;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
class PatchManagerBundle extends Bundle
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15 1
    public function build(ContainerBuilder $container): void
16
    {
17 1
        $container
18 1
            ->registerForAutoconfiguration(PatchOperationHandler::class)
19 1
            ->addTag('patch_manager.handler');
20
21 1
        $container->addCompilerPass(new PatchManagerCompilerPass());
22
    }
23
}
24