PimCustomEntityBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 1
1
<?php
2
3
namespace Pim\Bundle\CustomEntityBundle;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
8
/**
9
 * Pim Custom Entity Bundle
10
 *
11
 * @author    Antoine Guigan <[email protected]>
12
 * @copyright 2013 Akeneo SAS (http://www.akeneo.com)
13
 * @license   http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
14
 */
15
class PimCustomEntityBundle extends Bundle
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function build(ContainerBuilder $container)
21
    {
22
        $container
23
            ->addCompilerPass(new DependencyInjection\Compiler\ConfigurationBuilderPass())
24
            ->addCompilerPass(new DependencyInjection\Compiler\SerializerPass())
25
            ->addCompilerPass(new DependencyInjection\Compiler\ManagerRegistryPass());
26
    }
27
}
28