Completed
Pull Request — master (#42)
by Şəhriyar
432:01 queued 428:54
created

EventServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
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 36
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

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