Test Failed
Pull Request — master (#7)
by Jim
03:47
created

JarobeTaskRunnerBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
b 1
f 0
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
namespace Jarobe\TaskRunnerBundle;
4
5
use Jarobe\TaskRunnerBundle\DependencyInjection\Compiler\DriverCompilerPass;
6
use Jarobe\TaskRunnerBundle\DependencyInjection\Compiler\EntityManagerCompilerPass;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
class JarobeTaskRunnerBundle extends Bundle
11
{
12
    /**
13
     * @param ContainerBuilder $container
14
     */
15
    public function build(ContainerBuilder $container)
16
    {
17
        parent::build($container);
18
        $container->addCompilerPass(new DriverCompilerPass());
19
        $container->addCompilerPass(new EntityManagerCompilerPass());
20
    }
21
}