JbFileUploaderBundle::build()   A
last analyzed

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
 * 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