Completed
Pull Request — master (#4)
by
unknown
02:16
created

ServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Arrilot\SystemCheck;
4
5
use Arrilot\SystemCheck\Console\SystemCheckCommand;
6
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
7
8
class ServiceProvider extends BaseServiceProvider
9
{
10
    public function boot() {}
11
    /**
12
     * Register the service provider.
13
     *
14
     * @return void
15
     */
16
    public function register()
17
    {
18
        $this->app->singleton(ChecksCollection::class, function ($app) {
19
            return new ChecksCollection($app);
20
        });
21
22
        $this->app->singleton('command.system.check', function ($app) {
23
            return new SystemCheckCommand($app->make(ChecksCollection::class));
24
        });
25
26
        $this->commands('command.system.check');
27
    }
28
}
29