CommandBusConsoleBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 1
1
<?php
2
3
namespace Clearcode\CommandBusConsole\Bundle;
4
5
use Clearcode\CommandBusConsole\Bundle\DependencyInjection\Compiler\RegisterConsoleCommandsCompilerPass;
6
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
class CommandBusConsoleBundle extends Bundle
11
{
12
    public function build(ContainerBuilder $container)
13
    {
14
        parent::build($container);
15
16
        $container->addCompilerPass(new RegisterConsoleCommandsCompilerPass());
17
        $container->addCompilerPass(new AddConsoleCommandPass());
18
    }
19
}
20