Completed
Push — master ( 59f74a...c12486 )
by Mahmoud
03:24
created

MainServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 35
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\Authentication\Providers;
4
5
use App\Port\Provider\Abstracts\ServiceProviderAbstract;
6
use Tymon\JWTAuth\Providers\JWTAuthServiceProvider;
7
8
/**
9
 * Class MainServiceProvider.
10
 *
11
 * The Main Service Provider of this container, it will be automatically registered in the framework.
12
 *
13
 * @author  Mahmoud Zalt <[email protected]>
14
 */
15
class MainServiceProvider extends ServiceProviderAbstract
16
{
17
18
    /**
19
     * Indicates if loading of the provider is deferred.
20
     *
21
     * @var bool
22
     */
23
    protected $defer = false;
24
25
    /**
26
     * Container internal Service Provides.
27
     *
28
     * @var array
29
     */
30
    private $containerServiceProviders = [
31
        JWTAuthServiceProvider::class,
32
    ];
33
34
    /**
35
     * Perform post-registration booting of services.
36
     */
37
    public function boot()
38
    {
39
        $this->registerServiceProviders($this->containerServiceProviders);
40
    }
41
42
    /**
43
     * Register bindings in the container.
44
     */
45
    public function register()
46
    {
47
48
    }
49
}
50