FOSElasticaBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the FOSElasticaBundle package.
5
 *
6
 * (c) FriendsOfSymfony <https://friendsofsymfony.github.com/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace FOS\ElasticaBundle;
13
14
use FOS\ElasticaBundle\DependencyInjection\Compiler\ConfigSourcePass;
15
use FOS\ElasticaBundle\DependencyInjection\Compiler\IndexPass;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
class FOSElasticaBundle extends Bundle
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24 11
    public function build(ContainerBuilder $container)
25
    {
26 11
        parent::build($container);
27
28 11
        $container->addCompilerPass(new ConfigSourcePass());
29 11
        $container->addCompilerPass(new IndexPass());
30 11
    }
31
}
32