Service::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 6
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
3
namespace aspirantzhang\octopusRevision;
4
5
class Service extends \think\Service
6
{
7
    public function boot()
8
    {
9
        $this->app->bind('revision', RevisionAPI::class);
10
        $this->commands([
11
            'revision:save' => command\Save::class,
12
            'revision:restore' => command\Restore::class,
13
            'revision:read' => command\Read::class,
14
            'revision:list' => command\Home::class,
15
        ]);
16
    }
17
}
18