ZenstruckBackupBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 7
cts 7
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Zenstruck\BackupBundle;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
use Zenstruck\BackupBundle\DependencyInjection\Compiler\DestinationCompilerPass;
8
use Zenstruck\BackupBundle\DependencyInjection\Compiler\NamerCompilerPass;
9
use Zenstruck\BackupBundle\DependencyInjection\Compiler\ProcessorCompilerPass;
10
use Zenstruck\BackupBundle\DependencyInjection\Compiler\ProfileCompilerPass;
11
use Zenstruck\BackupBundle\DependencyInjection\Compiler\SourceCompilerPass;
12
13
/**
14
 * @author Kevin Bond <[email protected]>
15
 */
16
class ZenstruckBackupBundle extends Bundle
17
{
18 1
    public function build(ContainerBuilder $container)
19
    {
20 1
        $container->addCompilerPass(new ProfileCompilerPass());
21 1
        $container->addCompilerPass(new DestinationCompilerPass());
22 1
        $container->addCompilerPass(new SourceCompilerPass());
23 1
        $container->addCompilerPass(new ProcessorCompilerPass());
24 1
        $container->addCompilerPass(new NamerCompilerPass());
25 1
    }
26
}
27