Completed
Branch 1.x (cc7bb3)
by Akihito
01:53
created

DoctrineCacheModule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 66.67%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
1
<?php
2
/**
3
 * This file is part of the BEAR.Sunday package
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace BEAR\Sunday\Module\Cache;
8
9
use Doctrine\Common\Cache\ArrayCache;
10
use Doctrine\Common\Cache\Cache;
11
use Ray\Di\AbstractModule;
12
use Ray\Di\Scope;
13
14
class DoctrineCacheModule extends AbstractModule
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19 4
    protected function configure()
20
    {
21
        $this->bind(Cache::class)->to(ArrayCache::class)->in(Scope::SINGLETON);
22 4
    }
23
}
24