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

CheckerBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 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