1 | <?php |
||
2 | |||
3 | namespace Dtc\QueueBundle; |
||
4 | |||
5 | use Dtc\QueueBundle\DependencyInjection\Compiler\BeanstalkdCompilerPass; |
||
6 | use Dtc\QueueBundle\DependencyInjection\Compiler\GridCompilerPass; |
||
7 | use Dtc\QueueBundle\DependencyInjection\Compiler\RabbitMQCompilerPass; |
||
8 | use Dtc\QueueBundle\DependencyInjection\Compiler\RedisCompilerPass; |
||
9 | use Dtc\QueueBundle\DependencyInjection\Compiler\WorkerCompilerPass; |
||
10 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
11 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
||
12 | |||
13 | class DtcQueueBundle extends Bundle |
||
14 | { |
||
15 | public function build(ContainerBuilder $container): void |
||
16 | { |
||
17 | parent::build($container); |
||
18 | $container->addCompilerPass(new WorkerCompilerPass()); |
||
19 | $container->addCompilerPass(new RabbitMQCompilerPass()); |
||
20 | $container->addCompilerPass(new BeanstalkdCompilerPass()); |
||
21 | $container->addCompilerPass(new RedisCompilerPass()); |
||
22 | $container->addCompilerPass(new GridCompilerPass()); |
||
23 | } |
||
24 | } |
||
25 |