AnimeDbCatalogBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * AnimeDb package.
4
 *
5
 * @author    Peter Gribanov <[email protected]>
6
 * @copyright Copyright (c) 2011, Peter Gribanov
7
 * @license   http://opensource.org/licenses/GPL-3.0 GPL v3
8
 */
9
10
namespace AnimeDb\Bundle\CatalogBundle;
11
12
use Symfony\Component\HttpKernel\Bundle\Bundle;
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
use AnimeDb\Bundle\CatalogBundle\DependencyInjection\Compiler\PluginPass;
15
use AnimeDb\Bundle\CatalogBundle\DependencyInjection\Compiler\InstallItemPass;
16
17
/**
18
 * @author  Peter Gribanov <[email protected]>
19
 */
20
class AnimeDbCatalogBundle extends Bundle
21
{
22
    /**
23
     * @param ContainerBuilder $container
24
     */
25 1
    public function build(ContainerBuilder $container)
26
    {
27 1
        parent::build($container);
28 1
        $container->addCompilerPass(new PluginPass());
29 1
        $container->addCompilerPass(new InstallItemPass());
30 1
    }
31
}
32