PsiDescriptionBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Psi\Bundle\Description;
4
5
use Psi\Bundle\Description\DependencyInjection\Compiler\DescriptionFactoryPass;
6
use Psi\Bundle\Description\DependencyInjection\Compiler\ExtensionPass;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
class PsiDescriptionBundle extends Bundle
11
{
12
    public function build(ContainerBuilder $container)
13
    {
14
        $container->addCompilerPass(new DescriptionFactoryPass());
15
        $container->addCompilerPass(new ExtensionPass());
16
    }
17
}
18