|
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
|
|
|
|