src/FOSElasticaBundle.php
public function build(ContainerBuilder $container)
    {
        parent::build($container);

        $container->addCompilerPass(new ConfigSourcePass());
        $container->addCompilerPass(new IndexPass());
        $container->addCompilerPass(new RegisterPagerProvidersPass());
        $container->addCompilerPass(new RegisterPersistersPass());
        $container->addCompilerPass(new RegisterPagerPersistersPass());
        $container->addCompilerPass(new TransformerPass());
    }
public function build(ContainerBuilder $container)
    {
        parent::build($container);

        $container->addCompilerPass(new ConfigSourcePass());
        $container->addCompilerPass(new IndexPass());
        $container->addCompilerPass(new RegisterPagerProvidersPass());
        $container->addCompilerPass(new RegisterPersistersPass());
        $container->addCompilerPass(new RegisterPagerPersistersPass());
        $container->addCompilerPass(new TransformerPass());
    }
{@inheritdoc}