2011-04-10 23:08:51 +02:00
|
|
|
<?php
|
|
|
|
|
2013-03-27 18:39:28 +01:00
|
|
|
namespace FOS\ElasticaBundle;
|
2011-04-10 23:08:51 +02:00
|
|
|
|
2011-04-12 04:26:10 +02:00
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
2011-04-10 23:08:51 +02:00
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
2013-03-27 18:39:28 +01:00
|
|
|
use FOS\ElasticaBundle\DependencyInjection\Compiler\AddProviderPass;
|
|
|
|
use FOS\ElasticaBundle\DependencyInjection\Compiler\TransformerPass;
|
2011-04-10 23:08:51 +02:00
|
|
|
|
2013-03-27 18:39:28 +01:00
|
|
|
class FOSElasticaBundle extends Bundle
|
2011-04-10 23:08:51 +02:00
|
|
|
{
|
2011-04-12 04:26:10 +02:00
|
|
|
public function build(ContainerBuilder $container)
|
|
|
|
{
|
|
|
|
parent::build($container);
|
|
|
|
|
|
|
|
$container->addCompilerPass(new AddProviderPass());
|
2012-01-03 23:16:56 +01:00
|
|
|
$container->addCompilerPass(new TransformerPass());
|
2011-04-12 04:26:10 +02:00
|
|
|
}
|
2011-04-10 23:08:51 +02:00
|
|
|
}
|