As3ModlrBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 4
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 10 1
1
<?php
2
3
namespace As3\Bundle\ModlrBundle;
4
5
use As3\Bundle\ModlrBundle\DependencyInjection\Compiler;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
9
/**
10
 * The root bundle class for Modlr.
11
 *
12
 * @author  Jacob Bare <[email protected]>
13
 */
14
class As3ModlrBundle extends Bundle
15
{
16
    public function build(ContainerBuilder $container)
17
    {
18
        parent::build($container);
19
20
        // Create directories
21
        $container->addCompilerPass(new Compiler\DirectoryCompilerPass());
22
23
        // Add event subscribers
24
        $container->addCompilerPass(new Compiler\EventSubscribersPass());
25
    }
26
}
27