|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* This file is part of the ConfigCacheBundle package. |
|
5
|
|
|
* |
|
6
|
|
|
* Copyright (c) 2015-2016 Yahoo Japan Corporation |
|
7
|
|
|
* |
|
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
9
|
|
|
* file that was distributed with this source code. |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
namespace YahooJapan\ConfigCacheBundle; |
|
13
|
|
|
|
|
14
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
15
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle; |
|
16
|
|
|
use YahooJapan\ConfigCacheBundle\DependencyInjection\Compiler\CacheWarmerPass; |
|
17
|
|
|
use YahooJapan\ConfigCacheBundle\DependencyInjection\Compiler\LocalePass; |
|
18
|
|
|
use YahooJapan\ConfigCacheBundle\DependencyInjection\Compiler\RegisterPass; |
|
19
|
|
|
use YahooJapan\ConfigCacheBundle\DependencyInjection\Compiler\RestorableCachePass; |
|
20
|
|
|
|
|
21
|
|
|
class YahooJapanConfigCacheBundle extends Bundle |
|
22
|
|
|
{ |
|
23
|
|
|
/** |
|
24
|
|
|
* {@inheritdoc} |
|
25
|
|
|
*/ |
|
26
|
11 |
|
public function build(ContainerBuilder $container) |
|
27
|
|
|
{ |
|
28
|
11 |
|
$container->addCompilerPass(new RegisterPass()); |
|
29
|
11 |
|
$container->addCompilerPass(new CacheWarmerPass()); |
|
30
|
11 |
|
$container->addCompilerPass(new LocalePass()); |
|
31
|
11 |
|
$container->addCompilerPass(new RestorableCachePass()); |
|
32
|
11 |
|
} |
|
33
|
|
|
} |
|
34
|
|
|
|