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

SundayModule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 8

Test Coverage

Coverage 22.22%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 8
dl 0
loc 16
ccs 2
cts 9
cp 0.2222
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 10 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\Module;
8
9
use BEAR\Sunday\Extension\Application\AppInterface;
10
use BEAR\Sunday\Module\Annotation\DoctrineAnnotationModule;
11
use BEAR\Sunday\Module\Cache\DoctrineCacheModule;
12
use BEAR\Sunday\Module\Resource\ResourceModule;
13
use BEAR\Sunday\Provide\Application\MinApp;
14
use BEAR\Sunday\Provide\Error\ErrorModule;
15
use BEAR\Sunday\Provide\Router\RouterModule;
16
use BEAR\Sunday\Provide\Transfer\HttpResponderModule;
17
use Ray\Di\AbstractModule;
18
19
class SundayModule extends AbstractModule
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24 3
    protected function configure()
25
    {
26
        $this->bind(AppInterface::class)->to(MinApp::class);
27
        $this->install(new DoctrineCacheModule);
28
        $this->install(new DoctrineAnnotationModule);
29
        $this->install(new ResourceModule);
30
        $this->install(new RouterModule);
31
        $this->install(new HttpResponderModule);
32
        $this->install(new ErrorModule);
33 3
    }
34
}
35