Passed
Branch ci_setup (6efa95)
by Mattia
12:10 queued 13s
created

PatchManagerBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 7
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
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
        $container
18 1
            ->registerForAutoconfiguration(PatchOperationHandler::class)
19 1
            ->addTag('patch_manager.handler');
20
21 1
        $container->addCompilerPass(new PatchManagerCompilerPass());
22 1
    }
23
}
24