Completed
Pull Request — master (#37)
by Şəhriyar
274:38 queued 267:45
created

EventServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php namespace App\Providers;
2
3
use App\Events as Events;
4
use App\Listeners as Listeners;
5
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
6
7
class EventServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * The event handler mappings for the application.
11
     *
12
     * @var array
13
     */
14
    protected $listen = [
15
        Events\Files\Uploaded::class => [
16
            Listeners\Files\ValidateUploadRealMimeAgainstAllowedTypes::class,
17
            Listeners\Files\PersistUploadedFile::class
18
        ],
19
        Events\Users\LoggedIn::class => [],
20
        Events\Users\LoggedOut::class => [],
21
        Events\Users\Registered::class => [
22
            Listeners\Users\SendActivationLinkViaEmail::class
23
        ],
24
        Events\Users\RequestedActivationLink::class => [
25
            Listeners\Users\SendActivationLinkViaEmail::class
26
        ],
27
        Events\Users\RequestedResetPasswordLink::class => [],
28
        Events\Users\Updated::class => [],
29
    ];
30
31
    /**
32
     * Register any other events for your application.
33
     *
34
     * @return void
35
     */
36
    public function boot()
37
    {
38
        parent::boot();
39
40
        //
41
    }
42
}
43