MultiAuthBackPackServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
A registerInstallCommand() 0 6 1
A boot() 0 2 1
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