forked from sfcod/jobqueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSfCodQueueBundle.php
40 lines (35 loc) · 937 Bytes
/
SfCodQueueBundle.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace SfCod\QueueBundle;
use SfCod\QueueBundle\DependencyInjection\Compiler\JobCompilerPass;
use SfCod\QueueBundle\DependencyInjection\QueueExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Class CommonQueueBundle
*
* @author Virchenko Maksim <[email protected]>
*
* @package SfCod\QueueBundle
*/
class SfCodQueueBundle extends Bundle
{
/**
* Get bundle extension
*
* @return QueueExtension|\Symfony\Component\DependencyInjection\Extension\ExtensionInterface|null
*/
public function getContainerExtension()
{
return new QueueExtension();
}
/**
* Add compiler pass
*
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new JobCompilerPass());
}
}