Completed
Pull Request — 2.x (#139)
by Akihito
02:52
created

AssistedModule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 9 1
1
<?php
2
/**
3
 * This file is part of the Ray.Di package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace Ray\Di;
8
9
class AssistedModule extends AbstractModule
10
{
11 2
    protected function configure()
12
    {
13 2
        $this->bind('Doctrine\Common\Annotations\Reader')->to('Doctrine\Common\Annotations\AnnotationReader');
14 2
        $this->bindInterceptor(
15 2
            $this->matcher->any(),
16 2
            $this->matcher->annotatedWith('Ray\Di\Di\Assisted'),
17 2
            ['\Ray\Di\AssistedInterceptor']
18
        );
19 2
    }
20
}
21