Completed
Pull Request — master (#1)
by Jonathan
57:52
created

CacheEncrypterBundle::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace Jsq\Cache;
3
4
use Jsq\Cache\DependencyInjection\Compiler\CacheEncrypterCompilerPass;
5
use Symfony\Component\DependencyInjection\ContainerAware;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
8
9
class CacheEncrypterBundle extends ContainerAware implements BundleInterface
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\Depend...njection\ContainerAware has been deprecated with message: since version 2.8, to be removed in 3.0. Use the ContainerAwareTrait instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
10
{
11
    const VERSION = '0.3.0';
12
13 9
    public function build(ContainerBuilder $container)
14
    {
15 9
        $container->addCompilerPass(new CacheEncrypterCompilerPass);
16 9
    }
17
18
    public function getContainerExtension() {}
19
20
    public function getParent() {}
21
22
    public function boot() {}
23
24
    public function shutdown() {}
25
26 3
    public function getPath()
27
    {
28 3
        return __DIR__;
29
    }
30
31 3
    public function getNamespace()
32
    {
33 3
        return __NAMESPACE__;
34
    }
35
36 12
    public function getName()
37
    {
38 12
        return str_replace(__NAMESPACE__.'\\', '', __CLASS__);
39
    }
40
}
41