Passed
Push — master ( e17376...74a3c9 )
by Asmir
01:07 queued 17s
created

DoctrineMigrationsBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
4
namespace Doctrine\Bundle\MigrationsBundle;
5
6
use Doctrine\Bundle\MigrationsBundle\DependencyInjection\CompilerPass\ConfigureDependencyFactoryPass;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
/**
11
 * Bundle.
12
 *
13
 * @author Fabien Potencier <[email protected]>
14
 * @author Jonathan H. Wage <[email protected]>
15
 */
16
class DoctrineMigrationsBundle extends Bundle
17
{
18 9
    public function build(ContainerBuilder $builder)
19
    {
20 9
      $builder->addCompilerPass(new ConfigureDependencyFactoryPass());
21 9
    }
22
}
23