Completed
Push — master ( 0aa154...6fc129 )
by Maksim
05:50
created

FOSElasticaBundle.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/*
4
 * This file is part of the FOSElasticaBundle package.
5
 *
6
 * (c) FriendsOfSymfony <http://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 FOS\ElasticaBundle\DependencyInjection\Compiler\RegisterProvidersPass;
17
use FOS\ElasticaBundle\DependencyInjection\Compiler\TransformerPass;
18
use Symfony\Component\DependencyInjection\ContainerBuilder;
19
use FOS\ElasticaBundle\DependencyInjection\Compiler\RegisterPagerProvidersPass;
20
use FOS\ElasticaBundle\DependencyInjection\Compiler\RegisterPersistersPass;
21
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
22
use Symfony\Component\HttpKernel\Bundle\Bundle;
23
24
class FOSElasticaBundle extends Bundle
25
{
26
    /**
27
     * {@inheritdoc}
28
     */
29 4
    public function build(ContainerBuilder $container)
30
    {
31 4
        parent::build($container);
32
33 4
        $container->addCompilerPass(new ConfigSourcePass());
34 4
        $container->addCompilerPass(new IndexPass());
35 4
        $container->addCompilerPass(new RegisterProvidersPass(), PassConfig::TYPE_BEFORE_REMOVING);
0 ignored issues
show
Deprecated Code introduced by
The class FOS\ElasticaBundle\Depen...r\RegisterProvidersPass has been deprecated with message: since 4.x and will be removed in 5.0

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
36 4
        $container->addCompilerPass(new RegisterPagerProvidersPass(), PassConfig::TYPE_BEFORE_REMOVING);
37 4
        $container->addCompilerPass(new RegisterPersistersPass(), PassConfig::TYPE_BEFORE_REMOVING);
38 4
        $container->addCompilerPass(new TransformerPass());
39 4
    }
40
}
41