2011-04-10 23:08:51 +02:00
|
|
|
<?php
|
|
|
|
|
2013-03-27 18:44:06 +01:00
|
|
|
namespace FOS\ElasticaBundle;
|
2011-04-10 23:08:51 +02:00
|
|
|
|
2014-06-16 15:23:49 +02:00
|
|
|
use FOS\ElasticaBundle\DependencyInjection\Compiler\ConfigSourcePass;
|
2014-06-18 08:49:38 +02:00
|
|
|
use FOS\ElasticaBundle\DependencyInjection\Compiler\IndexPass;
|
2013-03-27 18:44:06 +01:00
|
|
|
use FOS\ElasticaBundle\DependencyInjection\Compiler\RegisterProvidersPass;
|
|
|
|
use FOS\ElasticaBundle\DependencyInjection\Compiler\TransformerPass;
|
2011-04-12 04:26:10 +02:00
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
2012-03-05 23:17:14 +01:00
|
|
|
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
|
2011-04-10 23:08:51 +02:00
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
|
|
|
2014-03-14 18:41:49 +01:00
|
|
|
/**
|
|
|
|
* Bundle.
|
|
|
|
*/
|
2013-03-27 18:44:06 +01:00
|
|
|
class FOSElasticaBundle extends Bundle
|
2011-04-10 23:08:51 +02:00
|
|
|
{
|
2012-03-05 23:17:14 +01:00
|
|
|
/**
|
2014-03-14 18:41:49 +01:00
|
|
|
* {@inheritdoc}
|
2012-03-05 23:17:14 +01:00
|
|
|
*/
|
2011-04-12 04:26:10 +02:00
|
|
|
public function build(ContainerBuilder $container)
|
|
|
|
{
|
|
|
|
parent::build($container);
|
|
|
|
|
2014-06-18 08:49:38 +02:00
|
|
|
$container->addCompilerPass(new ConfigSourcePass());
|
|
|
|
$container->addCompilerPass(new IndexPass());
|
2012-03-05 23:17:14 +01:00
|
|
|
$container->addCompilerPass(new RegisterProvidersPass(), PassConfig::TYPE_BEFORE_REMOVING);
|
2012-01-03 11:20:38 +01:00
|
|
|
$container->addCompilerPass(new TransformerPass());
|
2011-04-12 04:26:10 +02:00
|
|
|
}
|
2011-04-10 23:08:51 +02:00
|
|
|
}
|