Completed
Push — master ( 9de1be...100987 )
by David
8s
created

FOSHttpCacheBundle   A

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 FOSHttpCacheBundle package.
5
 *
6
 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
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 FOS\HttpCacheBundle;
13
14
use FOS\HttpCacheBundle\DependencyInjection\Compiler\LoggerPass;
15
use FOS\HttpCacheBundle\DependencyInjection\Compiler\SecurityContextPass;
16
use FOS\HttpCacheBundle\DependencyInjection\Compiler\TagSubscriberPass;
17
use FOS\HttpCacheBundle\DependencyInjection\Compiler\HashGeneratorPass;
18
use Symfony\Component\DependencyInjection\ContainerBuilder;
19
use Symfony\Component\HttpKernel\Bundle\Bundle;
20
21
class FOSHttpCacheBundle extends Bundle
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26 1
    public function build(ContainerBuilder $container)
27
    {
28 1
        $container->addCompilerPass(new LoggerPass());
29 1
        $container->addCompilerPass(new SecurityContextPass());
30 1
        $container->addCompilerPass(new TagSubscriberPass());
31 1
        $container->addCompilerPass(new HashGeneratorPass());
32 1
    }
33
}
34