Code

< 40 %
40-60 %
> 60 %
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