Completed
Push — master ( 615c30...a76a62 )
by Mahmoud
07:04 queued 03:22
created

EventsServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 28
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
1
<?php
2
3
namespace App\Containers\User\Settings\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