Completed
Push — master ( fe1dad...5b05e2 )
by Eric
07:08
created

IvoryFormExtraBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Ivory Form Extra package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\FormExtraBundle;
13
14
use Ivory\FormExtraBundle\DependencyInjection\Compiler\ResourceCompilerPass;
15
use Ivory\FormExtraBundle\DependencyInjection\Compiler\TemplatingCompilerPass;
16
use Symfony\Component\HttpKernel\Bundle\Bundle;
17
use Symfony\Component\DependencyInjection\ContainerBuilder;
18
19
/**
20
 * Ivory Form Javascript bundle.
21
 *
22
 * @author GeLo <[email protected]>
23
 */
24
class IvoryFormExtraBundle extends Bundle
25
{
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function build(ContainerBuilder $container)
30
    {
31
        $container
32
            ->addCompilerPass(new ResourceCompilerPass())
33
            ->addCompilerPass(new TemplatingCompilerPass());
34
    }
35
}
36