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

ElaoEnumBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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