IvorySerializerBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Ivory Serializer bundle package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\SerializerBundle;
13
14
use Ivory\SerializerBundle\DependencyInjection\Compiler\PublicForTestsCompilerPass;
15
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterCachePoolPass;
16
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterClassMetadataLoaderPass;
17
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterFOSServicePass;
18
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterListenerPass;
19
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterTypePass;
20
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterVisitorPass;
21
use Symfony\Component\DependencyInjection\ContainerBuilder;
22
use Symfony\Component\HttpKernel\Bundle\Bundle;
23
24
/**
25
 * @author GeLo <[email protected]>
26
 */
27
class IvorySerializerBundle extends Bundle
28
{
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function build(ContainerBuilder $container)
33
    {
34
        $container
35
            ->addCompilerPass(new RegisterCachePoolPass())
36
            ->addCompilerPass(new RegisterClassMetadataLoaderPass())
37
            ->addCompilerPass(new RegisterListenerPass())
38
            ->addCompilerPass(new RegisterFOSServicePass())
39
            ->addCompilerPass(new RegisterTypePass())
40
            ->addCompilerPass(new RegisterVisitorPass())
41
            ->addCompilerPass(new PublicForTestsCompilerPass());
42
    }
43
}
44