forked from mmucklo/DtcQueueBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDtcQueueBundle.php
More file actions
22 lines (19 loc) · 824 Bytes
/
DtcQueueBundle.php
File metadata and controls
22 lines (19 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
namespace Dtc\QueueBundle;
use Dtc\QueueBundle\DependencyInjection\Compiler\BeanstalkdCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\RabbitMQCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\RedisCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\WorkerCompilerPass;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class DtcQueueBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new WorkerCompilerPass());
$container->addCompilerPass(new RabbitMQCompilerPass());
$container->addCompilerPass(new BeanstalkdCompilerPass());
$container->addCompilerPass(new RedisCompilerPass());
}
}