EventServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 27
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

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