ContentFacetConverterPass   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 16
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 10 2
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