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

AppModule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 40%

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 1
c 3
b 1
f 0
lcom 0
cbo 3
dl 0
loc 12
ccs 2
cts 5
cp 0.4
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 6 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\Application;
8
9
use BEAR\Resource\Annotation\AppName;
10
use BEAR\Sunday\Extension\Application\AppInterface;
11
use BEAR\Sunday\Module\SundayModule;
12
use Ray\Di\AbstractModule;
13
14
class AppModule extends AbstractModule
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19 1
    protected function configure()
20
    {
21
        $this->bind(AppInterface::class)->to(MinApp::class);
22
        $this->bind()->annotatedWith(AppName::class)->toInstance('BEAR\Sunday');
23
        $this->install(new SundayModule);
24 1
    }
25
}
26