-
Notifications
You must be signed in to change notification settings - Fork 0
/
MNCRestBundle.php
24 lines (21 loc) · 1.03 KB
/
MNCRestBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
namespace MNC\Bundle\RestBundle;
use MNC\Bundle\RestBundle\DependencyInjection\Compiler\DoctrineFilterCompilerPass;
use MNC\Bundle\RestBundle\DependencyInjection\Compiler\EntityFactoryCompilerPass;
use MNC\Bundle\RestBundle\DependencyInjection\Compiler\ExtensionCompilerPass;
use MNC\Bundle\RestBundle\DependencyInjection\Compiler\ResourceManagerFactoryCompilerPass;
use MNC\Bundle\RestBundle\DependencyInjection\Compiler\TransformerCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class MNCRestBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
$container->addCompilerPass(new TransformerCompilerPass());
$container->addCompilerPass(new ExtensionCompilerPass());
$container->addCompilerPass(new EntityFactoryCompilerPass());
$container->addCompilerPass(new DoctrineFilterCompilerPass());
$container->addCompilerPass(new ResourceManagerFactoryCompilerPass());
parent::build($container);
}
}