-
Notifications
You must be signed in to change notification settings - Fork 1
/
BankiruDoctrineApiBundle.php
30 lines (26 loc) · 1.08 KB
/
BankiruDoctrineApiBundle.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
25
26
27
28
29
30
<?php
namespace Bankiru\Api;
use Bankiru\Api\DependencyInjection\BankiruDoctrineApiExtension;
use Bankiru\Api\DependencyInjection\Compiler\ApiFactoryPass;
use Bankiru\Api\DependencyInjection\Compiler\ClientCollectorPass;
use Bankiru\Api\DependencyInjection\Compiler\LoggerDecoratorPass;
use Bankiru\Api\DependencyInjection\Compiler\MappingCollectorPass;
use Bankiru\Api\DependencyInjection\Compiler\ProfilerDecoratorPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class BankiruDoctrineApiBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new ClientCollectorPass());
$container->addCompilerPass(new MappingCollectorPass());
$container->addCompilerPass(new LoggerDecoratorPass());
$container->addCompilerPass(new ProfilerDecoratorPass());
$container->addCompilerPass(new ApiFactoryPass());
}
public function getContainerExtension()
{
return new BankiruDoctrineApiExtension();
}
}