forked from GoIntegro/hateoas-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoIntegroHateoasBundle.php
More file actions
27 lines (24 loc) · 891 Bytes
/
GoIntegroHateoasBundle.php
File metadata and controls
27 lines (24 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* @copyright 2014 Integ S.A.
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
* @author Javier Lorenzana <javier.lorenzana@gointegro.com>
*/
namespace GoIntegro\Bundle\HateoasBundle;
// Symfony 2.
use Symfony\Component\HttpKernel\Bundle\Bundle,
Symfony\Component\DependencyInjection\ContainerBuilder;
// HATEOAS.
use GoIntegro\Bundle\HateoasBundle\DependencyInjection\Compiler;
class GoIntegroHateoasBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new Compiler\EntityCompilerPass)
->addCompilerPass(new Compiler\ParserCompilerPass)
->addCompilerPass(new Compiler\FilterCompilerPass)
->addCompilerPass(new Compiler\SortingCompilerPass)
->addCompilerPass(new Compiler\LocaleCompilerPass);
}
}