forked from TheBigBrainsCompany/TbbcMoneyBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TbbcMoneyBundle.php
28 lines (25 loc) · 909 Bytes
/
TbbcMoneyBundle.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
<?php
namespace Tbbc\MoneyBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Tbbc\MoneyBundle\DependencyInjection\Compiler\PairHistoryCompilerPass;
use Tbbc\MoneyBundle\DependencyInjection\Compiler\RatioProviderCompilerPass;
use Tbbc\MoneyBundle\DependencyInjection\Compiler\StorageCompilerPass;
use Tbbc\MoneyBundle\DependencyInjection\Compiler\DoctrineTypeCompilerPass;
/**
* Class TbbcMoneyBundle
* @package Tbbc\MoneyBundle
*/
class TbbcMoneyBundle extends Bundle
{
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new StorageCompilerPass());
$container->addCompilerPass(new PairHistoryCompilerPass());
$container->addCompilerPass(new RatioProviderCompilerPass());
}
}