PimCustomEntityBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 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