Completed
Push — master ( e1cce4...d2c19b )
by David
09:34 queued 11s
created

DuckFunkEventServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Torralbodavid\DuckFunkCore;
4
5
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
6
use SocialiteProviders\Manager\SocialiteWasCalled;
7
use Torralbodavid\DuckFunkCore\Events\Avatar\UpdateAvatarEvent;
8
use Torralbodavid\DuckFunkCore\Listeners\FacebookLoginCalled;
9
use Torralbodavid\DuckFunkCore\Listeners\UserUpdate;
10
11
class DuckFunkEventServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * The event handler mappings for the application.
15
     *
16
     * @var array
17
     */
18
    protected $listen = [
19
        UpdateAvatarEvent::class => [
20
            UserUpdate::class,
21
        ],
22
        SocialiteWasCalled::class => [
23
            FacebookLoginCalled::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