Completed
Push — master ( 46844c...fc14d1 )
by Jonathan
05:09
created

CacheEncrypterBundle::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
ccs 0
cts 0
cp 0
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 2
1
<?php
2
namespace Jsq\Cache;
3
4
use Jsq\Cache\DependencyInjection\Compiler\CacheEncrypterCompilerPass;
5
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
8
9
class CacheEncrypterBundle implements BundleInterface
10
{
11
    use ContainerAwareTrait;
12
13
    const VERSION = '0.3.0';
14
15 9
    public function build(ContainerBuilder $container)
16
    {
17 9
        $container->addCompilerPass(new CacheEncrypterCompilerPass);
18 9
    }
19
20
    public function getContainerExtension() {}
21
22
    public function getParent() {}
23
24
    public function boot() {}
25
26
    public function shutdown() {}
27
28 3
    public function getPath()
29
    {
30 3
        return __DIR__;
31
    }
32
33 3
    public function getNamespace()
34
    {
35 3
        return __NAMESPACE__;
36
    }
37
38 12
    public function getName()
39
    {
40 12
        return str_replace(__NAMESPACE__.'\\', '', __CLASS__);
41
    }
42
}
43