Failed Conditions
Push — v7 ( c80b33...0b1ec1 )
by Florent
04:39
created

CheckerBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
/*
4
 * The MIT License (MIT)
5
 *
6
 * Copyright (c) 2014-2016 Spomky-Labs
7
 *
8
 * This software may be modified and distributed under the terms
9
 * of the MIT license.  See the LICENSE file for details.
10
 */
11
12
namespace Jose\Bundle\Checker;
13
14
use Jose\Bundle\Checker\DependencyInjection\Compiler\ClaimCheckerCompilerPass;
15
use Jose\Bundle\Checker\DependencyInjection\Compiler\HeaderCheckerCompilerPass;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
final class CheckerBundle extends Bundle
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function build(ContainerBuilder $container)
25
    {
26
        parent::build($container);
27
28
        $container->addCompilerPass(new ClaimCheckerCompilerPass());
29
        $container->addCompilerPass(new HeaderCheckerCompilerPass());
30
    }
31
}
32