Completed
Pull Request — 1.1 (#636)
by
unknown
03:07 queued 13s
created

ONGRElasticsearchBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 4
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the ONGR package.
5
 *
6
 * (c) NFQ Technologies UAB <[email protected]>
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 ONGR\ElasticsearchBundle;
13
14
use ONGR\ElasticsearchBundle\DependencyInjection\Compiler\ManagerFactoryPass;
15
use ONGR\ElasticsearchBundle\DependencyInjection\Compiler\MappingPass;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
/**
20
 * ONGR Elasticsearch bundle system file required by kernel.
21
 */
22
class ONGRElasticsearchBundle extends Bundle
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function build(ContainerBuilder $container)
28
    {
29
        parent::build($container);
30
31
        $container->addCompilerPass(new MappingPass());
32
        $container->addCompilerPass(new ManagerFactoryPass());
33
    }
34
}
35