JbFileUploaderBundle   A
last analyzed

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
 * Copyright 2014 Jonathan Bouzekri. All rights reserved.
5
 *
6
 * @copyright Copyright 2014 Jonathan Bouzekri <[email protected]>
7
 * @license https://github.com/jbouzekri/ConfigKnpMenuBundle/blob/master/LICENSE
8
 * @link https://github.com/jbouzekri/ConfigKnpMenuBundle
9
 */
10
11
namespace Jb\Bundle\FileUploaderBundle;
12
13
use Symfony\Component\HttpKernel\Bundle\Bundle;
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
16
/**
17
 * JbFileUploaderBundle bundle
18
 *
19
 * @author Jonathan Bouzekri <[email protected]>
20
 */
21
class JbFileUploaderBundle extends Bundle
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function build(ContainerBuilder $container)
27
    {
28
        parent::build($container);
29
30
        $container->addCompilerPass(new DependencyInjection\Compiler\ResolverCompilerPass());
31
        $container->addCompilerPass(new DependencyInjection\Compiler\ValidatorCompilerPass());
32
    }
33
}
34