ContentSortClauseConverterPass::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\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Reference;
8
9
class ContentSortClauseConverterPass extends ConverterPass
10
{
11
    public function process(ContainerBuilder $container)
12
    {
13
        if ($container->has('ezfind_search_engine.content.sort_clause_converter')) {
14
            $this->addHandlersToService(
15
                $container,
16
                'ezfind_search_engine.content.sort_clause_converter',
17
                'ezfind_search_engine.content.sort_clause_handler'
18
            );
19
        }
20
    }
21
}
22