Service   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
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