PatchManagerBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 7
ccs 5
cts 5
cp 1
crap 1
rs 10
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