Failed Conditions
Push — v7 ( 477009...5356df )
by Florent
03:33
created

JoseFrameworkBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 4 1
A build() 0 6 1
1
<?php
2
3
/*
4
 * The MIT License (MIT)
5
 *
6
 * Copyright (c) 2014-2017 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\JoseFramework;
13
14
use Jose\Bundle\JoseFramework\DependencyInjection\Compiler\AlgorithmCompilerPass;
15
use Jose\Bundle\JoseFramework\DependencyInjection\JoseFrameworkExtension;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
final class JoseFrameworkBundle extends Bundle
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function getContainerExtension()
25
    {
26
        return new JoseFrameworkExtension('jose', __DIR__);
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function build(ContainerBuilder $container)
33
    {
34
        parent::build($container);
35
36
        $container->addCompilerPass(new AlgorithmCompilerPass());
37
    }
38
}
39