Completed
Branch 1.x (cc7bb3)
by Akihito
02:00
created

RouterModule::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.125

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
ccs 2
cts 4
cp 0.5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 1.125
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\Router;
8
9
use BEAR\Sunday\Annotation\DefaultSchemeHost;
10
use BEAR\Sunday\Extension\Router\RouterInterface;
11
use Ray\Di\AbstractModule;
12
13
class RouterModule extends AbstractModule
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18 3
    protected function configure()
19
    {
20
        $this->bind(RouterInterface::class)->to(WebRouter::class);
21
        $this->bind()->annotatedWith(DefaultSchemeHost::class)->toInstance('page://self');
22 3
    }
23
}
24