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