Completed
Pull Request — master (#47)
by Wachter
06:41 queued 17s
created

TaskBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Task\TaskBundle;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
use Task\TaskBundle\DependencyInjection\HandlerCompilerPass;
8
9
/**
10
 * Integrates php-task into symfony.
11
 */
12
class TaskBundle extends Bundle
13
{
14
    public function build(ContainerBuilder $container)
15
    {
16
        parent::build($container);
17
18
        $container->addCompilerPass(new HandlerCompilerPass());
19
    }
20
}
21