Completed
Pull Request — 1.x (#214)
by Yuu
03:24 queued 55s
created

PackageModule   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 40%

Importance

Changes 7
Bugs 0 Features 0
Metric Value
wmc 2
c 7
b 0
f 0
lcom 0
cbo 5
dl 0
loc 19
ccs 4
cts 10
cp 0.4
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A configure() 0 7 1
1
<?php
2
/**
3
 * This file is part of the BEAR.Package package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace BEAR\Package;
8
9
use BEAR\AppMeta\AbstractAppMeta;
10
use BEAR\Package\Provide\Error\VndErrorModule;
11
use BEAR\Package\Provide\Router\WebRouterModule;
12
use BEAR\QueryRepository\QueryRepositoryModule;
13
use BEAR\Sunday\Module\SundayModule;
14
use Ray\Di\AbstractModule;
15
16
class PackageModule extends AbstractModule
17
{
18 4
    public function __construct(AbstractAppMeta $appMeta = null)
19
    {
20 4
        unset($appMeta); // for BC
21
        parent::__construct();
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27 4
    protected function configure()
28
    {
29
        $this->install(new QueryRepositoryModule);
30
        $this->install(new WebRouterModule);
31
        $this->install(new VndErrorModule);
32
        $this->install(new SundayModule);
33 4
    }
34
}
35