-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSfCodQueueBundle.php
More file actions
41 lines (36 loc) · 1.01 KB
/
SfCodQueueBundle.php
File metadata and controls
41 lines (36 loc) · 1.01 KB
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
41
<?php
namespace SfCod\QueueBundle;
use SfCod\QueueBundle\DependencyInjection\Compiler\JobCompilerPass;
use SfCod\QueueBundle\DependencyInjection\QueueExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Class CommonQueueBundle
*
* @author Virchenko Maksim <muslim1992@gmail.com>
*
* @package SfCod\QueueBundle
*/
class SfCodQueueBundle extends Bundle
{
/**
* Get bundle extension
*
* @return QueueExtension|\Symfony\Component\DependencyInjection\Extension\ExtensionInterface|null
*/
public function getContainerExtension(): ?ExtensionInterface
{
return new QueueExtension();
}
/**
* Add compiler pass
*
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new JobCompilerPass());
}
}