EventServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
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