FOSElasticaBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

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