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

FOSHttpCacheBundle::build()   A

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