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

ChainSearchCompilerPass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 21
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A processParam() 0 15 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