Completed
Push — master ( 3c0a55...3afa22 )
by Maxime
02:42 queued 01:12
created

ElaoEnumBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the "elao/enum" package.
5
 *
6
 * Copyright (C) Elao
7
 *
8
 * @author Elao <[email protected]>
9
 */
10
11
namespace Elao\Enum\Bridge\Symfony\Bundle;
12
13
use Elao\Enum\Bridge\Symfony\Bundle\DependencyInjection\Compiler\DoctrineDBALTypesPass;
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
use Symfony\Component\HttpKernel\Bundle\Bundle;
16
17
class ElaoEnumBundle extends Bundle
18
{
19
    const DOCTRINE_TYPES_FILENAME = 'elao_enum_doctrine_types.php';
20
21
    public function build(ContainerBuilder $container)
22
    {
23
        parent::build($container);
24
25
        $container->addCompilerPass(new DoctrineDBALTypesPass($container->getParameter('kernel.cache_dir') . '/' . self::DOCTRINE_TYPES_FILENAME));
26
    }
27
}
28