EventServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 42
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
1
<?php
2
3
namespace App\Providers;
4
5
use App\Events\CandidateApplied;
6
use App\Events\CandidateDeleted;
7
use App\Listeners\CandidateApplyListener;
8
use App\Listeners\CandidateDeleteListener;
9
use App\Listeners\CandidateEventSubscriber;
10
use App\Listeners\MessageSentListener;
11
use Illuminate\Auth\Events\Registered;
12
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
13
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
14
use Illuminate\Mail\Events\MessageSent;
15
16
class EventServiceProvider extends ServiceProvider
17
{
18
    /**
19
     * The event listener mappings for the application.
20
     *
21
     * @var array
22
     */
23
    protected $listen = [
24
        Registered::class => [
25
            SendEmailVerificationNotification::class,
26
        ],
27
        CandidateApplied::class => [
28
            CandidateApplyListener::class,
29
        ],
30
        //        CandidateStageChanged::class => [
31
        //            CandidateStageListener::class
32
        //        ],
33
        CandidateDeleted::class => [
34
            CandidateDeleteListener::class,
35
        ],
36
        MessageSent::class => [
37
            MessageSentListener::class,
38
        ],
39
    ];
40
41
    /**
42
     * The subscriber classes to register.
43
     *
44
     * @var array
45
     */
46
    protected $subscribe = [
47
        CandidateEventSubscriber::class,
48
    ];
49
50
    /**
51
     * Register any events for your application.
52
     *
53
     * @return void
54
     */
55
    public function boot()
56
    {
57
        parent::boot();
58
59
        //
60
    }
61
}
62