EventServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
6
7
/**
8
 * Class EventServiceProvider
9
 * @package App\Providers
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
        'App\Events\Tournament\TournamentWasStarted' => [
20
            'App\Listeners\Tournament\Draw',
21
        ],
22
        'App\Events\Tournament\TournamentWasReset' => [
23
            'App\Listeners\Tournament\Reset',
24
        ],
25
        'App\Events\MatchWasFinished' => [
26
            'App\Listeners\Match\UpdateResultType',
27
        ],
28
        'App\Events\Tournament\RoundHasBeenFinished' => [
29
            'App\Listeners\Tournament\Draw'
30
        ]
31
    ];
32
33
    /**
34
     * Register any other events for your application.
35
     * @name boot
36
     */
37
    public function boot()
38
    {
39
        parent::boot();
40
41
        //
42
    }
43
}
44