YahooJapanConfigCacheBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
ccs 6
cts 6
cp 1
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
crap 1
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