Passed
Push — master ( 0bc69d...cc8e66 )
by Stephen
56s queued 13s
created

TrackingEventServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Sfneal\Tracking\Providers;
4
5
use Illuminate\Foundation\Support\Providers\EventServiceProvider;
6
use Sfneal\Tracking\Events\TrackActivityEvent;
7
use Sfneal\Tracking\Events\TrackTrafficEvent;
8
use Sfneal\Tracking\Listeners\TrackActivityListener;
9
use Sfneal\Tracking\Listeners\TrackTrafficListener;
10
11
class TrackingEventServiceProvider extends EventServiceProvider
12
{
13
    /**
14
     * The event listener mappings for the application.
15
     *
16
     * @var array
17
     */
18
    protected $listen = [
19
        // Activity Tracking
20
        TrackActivityEvent::class => [
21
            TrackActivityListener::class,
22
        ],
23
24
        // Traffic Tracking
25
        TrackTrafficEvent::class => [
26
            TrackTrafficListener::class,
27
        ],
28
    ];
29
30
    /**
31
     * Register any events for your application.
32
     *
33
     * @return void
34
     */
35
    public function boot()
36
    {
37
        parent::boot();
38
    }
39
}
40