ContentFacetConverterPass::process()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0
rs 9.9332
cc 2
nc 2
nop 1
1
<?php
2
3
namespace Kaliop\EzFindSearchEngineBundle\DependencyInjection\CompilerPass;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
7
class ContentFacetConverterPass extends ConverterPass
8
{
9
    /**
10
     * @inheritdoc
11
     */
12
    public function process(ContainerBuilder $container)
13
    {
14
        if ($container->has('ezfind_search_engine.content.facet_converter')) {
15
            $this->addHandlersToService(
16
                $container,
17
                'ezfind_search_engine.content.facet_converter',
18
                'ezfind_search_engine.content.facet_handler'
19
            );
20
        }
21
    }
22
}
23