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

SonataDoctrineORMAdminBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5
Metric Value
wmc 1
lcom 0
cbo 5
dl 0
loc 12
rs 10

1 Method

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