MainServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace App\Containers\User\Providers;
4
5
use App\Containers\User\Contracts\UserRepositoryInterface;
6
use App\Containers\User\Data\Repositories\UserRepository;
7
use App\Ship\Parents\Providers\MainProvider;
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 MainProvider
17
{
18
19
    /**
20
     * Container Service Providers.
21
     *
22
     * @var array
23
     */
24
    public $serviceProviders = [
25
        EventsServiceProvider::class,
26
    ];
27
28
    /**
29
     * Container Aliases
30
     *
31
     * @var  array
32
     */
33
    public $aliases = [
34
35
    ];
36
37
    /**
38
     * Register anything in the container.
39
     */
40
    public function register()
41
    {
42
        parent::register();
43
44
        $this->app->bind(UserRepositoryInterface::class, UserRepository::class);
45
    }
46
}
47