IvorySerializerBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 10
ccs 8
cts 8
cp 1
rs 9.4285
cc 1
eloc 8
nc 1
nop 1
crap 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\RegisterCachePoolPass;
15
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterClassMetadataLoaderPass;
16
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterFOSServicePass;
17
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterListenerPass;
18
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterTypePass;
19
use Ivory\SerializerBundle\DependencyInjection\Compiler\RegisterVisitorPass;
20
use Symfony\Component\DependencyInjection\ContainerBuilder;
21
use Symfony\Component\HttpKernel\Bundle\Bundle;
22
23
/**
24
 * @author GeLo <[email protected]>
25
 */
26
class IvorySerializerBundle extends Bundle
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31 243
    public function build(ContainerBuilder $container)
32
    {
33
        $container
34 243
            ->addCompilerPass(new RegisterCachePoolPass())
35 243
            ->addCompilerPass(new RegisterClassMetadataLoaderPass())
36 243
            ->addCompilerPass(new RegisterListenerPass())
37 243
            ->addCompilerPass(new RegisterFOSServicePass())
38 243
            ->addCompilerPass(new RegisterTypePass())
39 243
            ->addCompilerPass(new RegisterVisitorPass());
40 243
    }
41
}
42