Completed
Push — 1.x ( ed7876...cc7bb3 )
by Akihito
03:45 queued 01:48
created

RepresentationModule::configure()   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.037
Metric Value
dl 0
loc 4
ccs 2
cts 3
cp 0.6667
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1.037
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\Provide\Representation;
8
9
use BEAR\Resource\JsonRenderer;
10
use BEAR\Resource\RenderInterface;
11
use Ray\Di\AbstractModule;
12
use Ray\Di\Scope;
13
14
class RepresentationModule extends AbstractModule
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19 1
    protected function configure()
20
    {
21
        $this->bind(RenderInterface::class)->to(JsonRenderer::class)->in(Scope::SINGLETON);
22 1
    }
23
}
24