Completed
Pull Request — master (#35)
by Krzysztof
04:21
created

ChainSearchCompilerPass::processParam()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 15
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 11
nc 1
nop 3
crap 1
1
<?php
2
3
namespace KGzocha\Bundle\SearcherBundle\DependencyInjection\CompilerPass;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
7
/**
8
 * @author Krzysztof Gzocha <[email protected]>
9
 */
10
class ChainSearchCompilerPass extends AbstractChainsCompilerPass
11
{
12
    /**
13
     * @inheritDoc
14
     */
15 2
    protected function processParam(
16
        $contextId,
17
        array &$paramConfig,
18
        ContainerBuilder $container
19
    ) {
20 2
        $this->buildDefinition(
21
            $container,
22
            $contextId,
23 2
            $this->buildChainServiceName(
24
                $contextId,
25 2
                self::SEARCHER_PARAMETER
26
            ),
27 2
            $paramConfig['chain_searcher']
28
        );
29 2
    }
30
}
31