forked from trandangtri/sqs-queue-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTriTranSqsQueueBundle.php
More file actions
37 lines (31 loc) · 850 Bytes
/
Copy pathTriTranSqsQueueBundle.php
File metadata and controls
37 lines (31 loc) · 850 Bytes
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
29
30
31
32
33
34
35
36
37
<?php
namespace TriTran\SqsQueueBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use TriTran\SqsQueueBundle\DependencyInjection\Compiler\SQSQueuePass;
use TriTran\SqsQueueBundle\DependencyInjection\TriTranSqsQueueExtension;
/**
* Class TriTranSqsQueueBundle
* @package TriTran\SqsQueueBundle
*/
class TriTranSqsQueueBundle extends Bundle
{
/**
* @inheritdoc
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new SQSQueuePass());
}
/**
* @inheritdoc
*/
public function getContainerExtension()
{
if (null === $this->extension) {
$this->extension = new TriTranSqsQueueExtension();
}
return $this->extension;
}
}