LiipFunctionalTestBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Liip/FunctionalTestBundle
7
 *
8
 * (c) Lukas Kahwe Smith <[email protected]>
9
 *
10
 * This source file is subject to the MIT license that is bundled
11
 * with this source code in the file LICENSE.
12
 */
13
14
namespace Liip\FunctionalTestBundle;
15
16
use Liip\FunctionalTestBundle\DependencyInjection\Compiler\OptionalValidatorPass;
17
use Liip\FunctionalTestBundle\DependencyInjection\Compiler\SetTestClientPass;
18
use Symfony\Component\DependencyInjection\ContainerBuilder;
19
use Symfony\Component\HttpKernel\Bundle\Bundle;
20
21
class LiipFunctionalTestBundle extends Bundle
22
{
23 1
    public function build(ContainerBuilder $container): void
24
    {
25 1
        $container->addCompilerPass(new SetTestClientPass());
26 1
        $container->addCompilerPass(new OptionalValidatorPass());
27 1
    }
28
}
29