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

AssistedModule::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 9
ccs 7
cts 7
cp 1
rs 9.6666
cc 1
eloc 6
nc 1
nop 0
crap 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