Completed
Branch 1.x (cc7bb3)
by Akihito
01:53
created

RouterModule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 50%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 11
ccs 2
cts 4
cp 0.5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 5 1
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