Completed
Push — master ( 1ed135...6ab2d0 )
by Mahmoud
04:32 queued 14s
created

EventsServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace App\Containers\User\Providers;
4
5
use App\Containers\User\Events\Events\UserCreatedEvent;
6
use App\Containers\User\Events\Handlers\UserCreatedEventHandler;
7
use App\Port\Event\Providers\PortEventsServiceProvider;
8
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
9
10
/**
11
 * Class EventsServiceProvider
12
 *
13
 * @author  Mahmoud Zalt  <[email protected]>
14
 */
15
class EventsServiceProvider extends PortEventsServiceProvider
16
{
17
18
    /**
19
     * The event listener mappings for the application.
20
     *
21
     * @var array
22
     */
23
    protected $listen = [
24
        UserCreatedEvent::class => [
25
            UserCreatedEventHandler::class,
26
        ],
27
    ];
28
29
    /**
30
     * Register any other events for your application.
31
     *
32
     * @param  \Illuminate\Contracts\Events\Dispatcher $events
33
     *
34
     * @return void
35
     */
36
    public function boot(DispatcherContract $events)
37
    {
38
        parent::boot($events);
39
40
        //
41
    }
42
}
43