EventServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Providers;
4
5
use App\Events\LogedUser;
6
use App\Events\RegisteredUser;
7
use App\Listeners\AssignDefaultPermission;
8
use App\Listeners\RegisteredUserWelcomeNotification;
9
use App\Listeners\UserLogedNotification;
10
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
11
use Illuminate\Support\Facades\Event;
12
13
class EventServiceProvider extends ServiceProvider
14
{
15
    /**
16
     * The event listener mappings for the application.
17
     *
18
     * @var array
19
     */
20
    protected $listen = [
21
        LogedUser::class => [
22
            UserLogedNotification::class,
23
24
        ],
25
        RegisteredUser::class => [
26
            AssignDefaultPermission::class,
27
            RegisteredUserWelcomeNotification::class,
28
        ],
29
    ];
30
31
    /**
32
     * Register any events for your application.
33
     *
34
     * @return void
35
     */
36
    public function boot()
37
    {
38
        parent::boot();
39
40
        //
41
    }
42
}
43