1 | <?php |
||
2 | |||
3 | namespace Innmind\ProvisionerBundle; |
||
4 | |||
5 | use Innmind\ProvisionerBundle\DependencyInjection\Compiler\LoadRabbitMQConfigPass; |
||
6 | use Innmind\ProvisionerBundle\DependencyInjection\Compiler\RegisterAlertersPass; |
||
7 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
||
8 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
9 | use Symfony\Component\DependencyInjection\Compiler\PassConfig; |
||
10 | |||
11 | class InnmindProvisionerBundle extends Bundle |
||
12 | { |
||
13 | public function build(ContainerBuilder $container) |
||
14 | { |
||
15 | parent::build($container); |
||
16 | |||
17 | $container |
||
18 | ->addCompilerPass( |
||
19 | new LoadRabbitMQConfigPass(), |
||
20 | PassConfig::TYPE_BEFORE_REMOVING |
||
21 | ) |
||
22 | ->addCompilerPass( |
||
23 | new RegisterAlertersPass() |
||
24 | ); |
||
25 | } |
||
26 | } |
||
27 |