TeroxSubscriptionBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 2
rs 10
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