KunstmaanFixturesBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 0
cts 8
cp 0
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Kunstmaan\FixturesBundle;
4
5
use Kunstmaan\FixturesBundle\DependencyInjection\Compiler\BuilderCompilerPass;
6
use Kunstmaan\FixturesBundle\DependencyInjection\Compiler\ParserCompilerPass;
7
use Kunstmaan\FixturesBundle\DependencyInjection\Compiler\PopulatorCompilerPass;
8
use Kunstmaan\FixturesBundle\DependencyInjection\Compiler\ProviderCompilerPass;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\HttpKernel\Bundle\Bundle;
11
12
class KunstmaanFixturesBundle extends Bundle
13
{
14
    public function build(ContainerBuilder $container)
15
    {
16
        parent::build($container);
17
18
        $container->addCompilerPass(new BuilderCompilerPass());
19
        $container->addCompilerPass(new PopulatorCompilerPass());
20
        $container->addCompilerPass(new ParserCompilerPass());
21
        $container->addCompilerPass(new ProviderCompilerPass());
22
    }
23
}
24