DoSResourceBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 3
Metric Value
c 4
b 0
f 3
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 1
1
<?php
2
3
namespace DoS\ResourceBundle;
4
5
use DoS\ResourceBundle\DependencyInjection\AbstractResourceBundle;
6
use DoS\ResourceBundle\DependencyInjection\Compiler;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
9
class DoSResourceBundle extends AbstractResourceBundle
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function build(ContainerBuilder $container)
15
    {
16
        parent::build($container);
17
18
        $container->addCompilerPass(new Compiler\SettingsAwarePass());
19
        $container->addCompilerPass(new Compiler\SyliusOverridePass());
20
        $container->addCompilerPass(new Compiler\FormFactoryPass());
21
        $container->addCompilerPass(new Compiler\SlugifyPass());
22
    }
23
}
24