Passed
Push — master ( f218e6...f51c1b )
by Arthur
04:59
created

NotificationServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Modules\Notification\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Modules\Notification\Contracts\NotificationServiceContract;
7
use Modules\Notification\Services\NotificationService;
8
use Modules\User\Services\UserService;
9
10
class NotificationServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Boot the application events.
14
     *
15
     * @return void
16
     */
17
    public function boot()
18
    {
19
    }
20
21
    /**
22
     * Register the service provider.
23
     *
24
     * @return void
25
     */
26
    public function register()
27
    {
28
        $this->app->bind(NotificationServiceContract::class, function () {
29
            return new NotificationService(new UserService());
30
        });
31
    }
32
}
33