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

DuckFunkEventServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

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