|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace MovingImage\Bundle\VMProApiBundle; |
|
4
|
|
|
|
|
5
|
|
|
use MovingImage\Bundle\VMProApiBundle\DependencyInjection\Compiler\CachePoolPass; |
|
6
|
|
|
use MovingImage\Bundle\VMProApiBundle\DependencyInjection\Compiler\StopwatchPass; |
|
7
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
8
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle; |
|
9
|
|
|
|
|
10
|
|
|
class VMProApiBundle extends Bundle |
|
11
|
|
|
{ |
|
12
|
|
|
/** |
|
13
|
|
|
* {@inheritdoc} |
|
14
|
|
|
*/ |
|
15
|
|
|
public function build(ContainerBuilder $container) |
|
16
|
|
|
{ |
|
17
|
|
|
parent::build($container); |
|
18
|
|
|
$container->addCompilerPass(new CachePoolPass()); |
|
19
|
|
|
$container->addCompilerPass(new StopwatchPass()); |
|
20
|
|
|
} |
|
21
|
|
|
} |
|
22
|
|
|
|