Completed
Push — master ( f4ab91...b02197 )
by Mahmoud
03:34
created

MainProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 22
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 4 1
1
<?php
2
3
namespace App\Ship\Parents\Providers;
4
5
use App\Ship\Engine\Loaders\AliasesLoaderTrait;
6
use App\Ship\Engine\Loaders\ProvidersLoaderTrait;
7
use Illuminate\Support\ServiceProvider as LaravelAppServiceProvider;
8
9
/**
10
 * Class MainProvider.
11
 *
12
 * @author  Mahmoud Zalt <[email protected]>
13
 */
14
abstract class MainProvider extends LaravelAppServiceProvider
15
{
16
    use ProvidersLoaderTrait;
17
    use AliasesLoaderTrait;
18
19
20
    /**
21
     * Perform post-registration booting of services.
22
     */
23
    public function boot()
24
    {
25
        $this->loadServiceProviders();
26
    }
27
28
    /**
29
     * Register anything in the container.
30
     */
31
    public function register()
32
    {
33
        $this->loadAliases();
34
    }
35
}
36