-
Notifications
You must be signed in to change notification settings - Fork 38
/
DtcQueueBundle.php
24 lines (21 loc) · 958 Bytes
/
DtcQueueBundle.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
<?php
namespace Dtc\QueueBundle;
use Dtc\QueueBundle\DependencyInjection\Compiler\BeanstalkdCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\GridCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\RabbitMQCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\RedisCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\WorkerCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class DtcQueueBundle extends Bundle
{
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->addCompilerPass(new WorkerCompilerPass());
$container->addCompilerPass(new RabbitMQCompilerPass());
$container->addCompilerPass(new BeanstalkdCompilerPass());
$container->addCompilerPass(new RedisCompilerPass());
$container->addCompilerPass(new GridCompilerPass());
}
}