RepositoriesServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
A register() 0 9 1
1
<?php
2
3
namespace PHPHub\Providers;
4
5
use PHPHub\Repositories\Eloquent\LaunchScreenAdvertRepository;
6
use PHPHub\Repositories\Eloquent\NodeRepository;
7
use PHPHub\Repositories\Eloquent\NotificationRepository;
8
use PHPHub\Repositories\Eloquent\ReplyRepository;
9
use PHPHub\Repositories\Eloquent\TopicRepository;
10
use PHPHub\Repositories\Eloquent\UserRepository;
11
use PHPHub\Repositories\LaunchScreenAdvertRepositoryInterface;
12
use PHPHub\Repositories\NodeRepositoryInterface;
13
use PHPHub\Repositories\NotificationRepositoryInterface;
14
use PHPHub\Repositories\ReplyRepositoryInterface;
15
use PHPHub\Repositories\TopicRepositoryInterface;
16
use PHPHub\Repositories\UserRepositoryInterface;
17
use Illuminate\Support\ServiceProvider;
18
19
class RepositoriesServiceProvider extends ServiceProvider
20
{
21
    /**
22
     * Bootstrap the application services.
23
     */
24
    public function boot()
25
    {
26
    }
27
28
    /**
29
     * Register the application services.
30
     */
31
    public function register()
32
    {
33
        app()->bind(UserRepositoryInterface::class, UserRepository::class);
34
        app()->bind(TopicRepositoryInterface::class, TopicRepository::class);
35
        app()->bind(ReplyRepositoryInterface::class, ReplyRepository::class);
36
        app()->bind(NodeRepositoryInterface::class, NodeRepository::class);
37
        app()->bind(LaunchScreenAdvertRepositoryInterface::class, LaunchScreenAdvertRepository::class);
38
        app()->bind(NotificationRepositoryInterface::class, NotificationRepository::class);
39
    }
40
}
41