HappyrAnnotationWarmerBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Happyr\AnnotationWarmer;
6
7
use Happyr\AnnotationWarmer\DependencyInjection\CompilerPass\AddLoaderToSerializerCacheWarmerPass;
8
use Happyr\AnnotationWarmer\DependencyInjection\CompilerPass\AddLoaderToValidationBuilderPass;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\HttpKernel\Bundle\Bundle;
11
12
class HappyrAnnotationWarmerBundle extends Bundle
13
{
14
    public function build(ContainerBuilder $container)
15
    {
16
        parent::build($container);
17
18
        $container->addCompilerPass(new AddLoaderToValidationBuilderPass());
19
        $container->addCompilerPass(new AddLoaderToSerializerCacheWarmerPass());
20
    }
21
}
22