YahooJapanConfigCacheBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 6

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 6
dl 0
loc 13
ccs 6
cts 6
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 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