TeroxSubscriptionBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 5 1
1
<?php
2
3
namespace Terox\SubscriptionBundle;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
use Terox\SubscriptionBundle\DependencyInjection\Compiler\ServicesCompilerPass;
8
use Terox\SubscriptionBundle\DependencyInjection\Compiler\SubscriptionStrategyCompilerPass;
9
10
class TeroxSubscriptionBundle extends Bundle
11
{
12
    const COMMAND_NAMESPACE = 'terox:subscription';
13
14
    /**
15
     *{@inheritdoc}
16
     */
17
    public function build(ContainerBuilder $container)
18
    {
19
        parent::build($container);
20
        $container->addCompilerPass(new SubscriptionStrategyCompilerPass());
21
        $container->addCompilerPass(new ServicesCompilerPass());
22
    }
23
}
24