EventServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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