Test Failed
Push — master ( 0ea0f1...28ea87 )
by kill
02:34
created

App::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by rozbo at 2017/3/18 下午8:52
4
 */
5
6
namespace puck;
7
8
9
class App extends Container {
10
11
    public function __construct() {
12
        $this->initContainer();
13
    }
14
15
    /**
16
     * 初始化容器
17
     */
18
    private function initContainer() {
19
        static::setInstance($this);
20
        $this->instance('app',$this);
21
        $this->bind('pinyin','\puck\helpers\PinYin');
22
    }
23
24
}