Completed
Push — 2.x ( 359f6e )
by Sullivan
14:45
created

SonataDoctrineORMAdminBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
/*
3
 * This file is part of the Sonata project.
4
 *
5
 * (c) Thomas Rabaix <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Sonata\DoctrineORMAdminBundle;
12
13
use Symfony\Component\HttpKernel\Bundle\Bundle;
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
16
use Sonata\DoctrineORMAdminBundle\DependencyInjection\Compiler\AddGuesserCompilerPass;
17
use Sonata\DoctrineORMAdminBundle\DependencyInjection\Compiler\AddTemplatesCompilerPass;
18
use Sonata\DoctrineORMAdminBundle\DependencyInjection\Compiler\AddAuditEntityCompilerPass;
19
20
class SonataDoctrineORMAdminBundle extends Bundle
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function build(ContainerBuilder $container)
26
    {
27
        $container->addCompilerPass(new AddGuesserCompilerPass());
28
        $container->addCompilerPass(new AddTemplatesCompilerPass());
29
        $container->addCompilerPass(new AddAuditEntityCompilerPass());
30
    }
31
}
32