Completed
Push — 1.x ( 2fe7b7...1204c5 )
by Akihito
03:23
created

CreatedResourceModule::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 0
Metric Value
c 0
b 0
f 0
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 BEAR.Package package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace BEAR\Package\Provide\Representation;
8
9
use BEAR\Package\Annotation\ReturnCreatedResource;
10
use Ray\Di\AbstractModule;
11
12
class CreatedResourceModule extends AbstractModule
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17 22
    protected function configure()
18
    {
19 22
        $this->bind(CreatedResourceRenderer::class);
20 22
        $this->bindInterceptor(
21 22
            $this->matcher->any(),
22 22
            $this->matcher->annotatedWith(ReturnCreatedResource::class),
23 22
            [CreatedResourceInterceptor::class]
24
        );
25 22
    }
26
}
27