Passed
Push — dependabot/npm_and_yarn/string... ( b56eb5...bc569b )
by
unknown
45:46 queued 33s
created

EventServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 28
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
namespace Thinktomorrow\Chief\App\Providers;
4
5
use Thinktomorrow\Chief\Users\Application\EnableUser;
6
use Thinktomorrow\Chief\Users\Invites\Application\SendInvite;
7
use Thinktomorrow\Chief\Users\Invites\Events\InviteAccepted;
8
use Thinktomorrow\Chief\Users\Invites\Events\UserInvited;
9
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
10
11
class EventServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * The event listener mappings for the application.
15
     *
16
     * @var array
17
     */
18
    protected $listen = [
19
        'Illuminate\Auth\Events\Login' => [
20
            'Thinktomorrow\Chief\App\Listeners\LogSuccessfulLogin',
21
        ],
22
23
        UserInvited::class => [
24
            SendInvite::class
25
        ],
26
        InviteAccepted::class => [
27
            EnableUser::class.'@onAcceptingInvite',
28
        ],
29
    ];
30
31
    /**
32
     * Register any events for your application.
33
     *
34
     * @return void
35
     */
36
    public function boot()
37
    {
38
        parent::boot();
39
40
        //
41
    }
42
}
43