LIN3SKnowledgeBaseBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 4
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the Knowledge Base package.
5
 *
6
 * Copyright (c) 2015 LIN3S <[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 LIN3S\KnowledgeBaseBundle;
13
14
use LIN3S\KnowledgeBaseBundle\DependencyInjection\Compiler\ConfigurationCompilerPass;
15
use LIN3S\KnowledgeBaseBundle\DependencyInjection\Compiler\GeneratorCompilerPass;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
/**
20
 * Class LIN3SKnowledgeBaseBundle.
21
 *
22
 * @author Gorka Laucirica <[email protected]>
23
 */
24
class LIN3SKnowledgeBaseBundle extends Bundle
25
{
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function build(ContainerBuilder $container)
30
    {
31
        parent::build($container);
32
        $container->addCompilerPass(new GeneratorCompilerPass());
33
        $container->addCompilerPass(new ConfigurationCompilerPass());
34
    }
35
}
36
37