Completed
Push — main ( bdd72f...bbe282 )
by Niels
15s queued 12s
created

NijensOpenapiBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 10
1
<?php
2
3
/*
4
 * This file is part of the OpenapiBundle package.
5
 *
6
 * (c) Niels Nijens <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Nijens\OpenapiBundle;
13
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
use Symfony\Component\HttpKernel\Bundle\Bundle;
16
use Symfony\Component\Serializer\DependencyInjection\SerializerPass;
17
18
/**
19
 * OpenapiBundle.
20
 *
21
 * @author Niels Nijens <[email protected]>
22
 */
23
class NijensOpenapiBundle extends Bundle
24
{
25
    public function build(ContainerBuilder $container): void
26
    {
27
        parent::build($container);
28
29
        $container->addCompilerPass(
30
            new SerializerPass('nijens_openapi.serializer', 'nijens_openapi.serializer.normalizer')
31
        );
32
    }
33
}
34