EventServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Ikechukwukalu\Sanctumauthstarter;
4
5
use Ikechukwukalu\Sanctumauthstarter\Events\ForgotPassword;
6
use Ikechukwukalu\Sanctumauthstarter\Events\EmailVerification;
7
use Ikechukwukalu\Sanctumauthstarter\Events\SocialiteLogin;
8
use Ikechukwukalu\Sanctumauthstarter\Events\TwoFactorLogin;
9
use Ikechukwukalu\Sanctumauthstarter\Listeners\SendResetLink;
10
use Ikechukwukalu\Sanctumauthstarter\Listeners\SendEmailVerificationNotification;
11
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
12
13
class EventServiceProvider extends ServiceProvider
14
{
15
16
    protected $listen = [
17
        ForgotPassword::class => [
18
            SendResetLink::class
19
        ],
20
        EmailVerification::class => [
21
            SendEmailVerificationNotification::class
22
        ],
23
        TwoFactorLogin::class => [
24
        ],
25
        SocialiteLogin::class => [
26
        ],
27
    ];
28
29
    public function boot()
30
    {
31
        parent::boot();
32
    }
33
}
34