Completed
Push — master ( 857394...4794c5 )
by Mahmoud
03:25
created

MainServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 44
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 4 1
1
<?php
2
3
namespace App\Containers\Settings\Providers;
4
5
use App\Port\Provider\Abstracts\ServiceProviderAbstract;
6
7
/**
8
 * Class MainServiceProvider.
9
 *
10
 * The Main Service Provider of this container, it will be automatically registered in the framework.
11
 *
12
 * @author  Mahmoud Zalt <[email protected]>
13
 */
14
class MainServiceProvider extends ServiceProviderAbstract
15
{
16
17
    /**
18
     * Indicates if loading of the provider is deferred.
19
     *
20
     * @var bool
21
     */
22
    protected $defer = false;
23
24
    /**
25
     * Container Service Providers.
26
     *
27
     * @var array
28
     */
29
    public $containerServiceProviders = [
30
31
    ];
32
33
    /**
34
     * Container Aliases
35
     *
36
     * @var  array
37
     */
38
    public $containerAliases = [
39
40
    ];
41
42
    /**
43
     * Perform post-registration booting of services.
44
     */
45
    public function boot()
46
    {
47
        $this->loadContainersInternalProviders();
48
    }
49
50
    /**
51
     * Register anything in the container.
52
     */
53
    public function register()
54
    {
55
        $this->loadContainersInternalAliases();
56
    }
57
}
58