IvorySerializerBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 9

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 9
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 11 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