MultiAuthBackPackServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace iMokhles\MultiAuthBackPack;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class MultiAuthBackPackServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        //
17
    }
18
19
    /**
20
     * Register the application services.
21
     *
22
     * @return void
23
     */
24
    public function register()
25
    {
26
        //
27
        $this->registerInstallCommand();
28
    }
29
30
    /**
31
     * Register the make:multi-auth command.
32
     */
33
    private function registerInstallCommand()
34
    {
35
        $this->app->singleton('command.imokhles.make.multi-backpack', function ($app) {
36
            return $app['iMokhles\MultiAuthBackPack\Command\MultiAuthPrepare'];
37
        });
38
        $this->commands('command.imokhles.make.multi-backpack');
39
    }
40
}
41