1 | <?php |
||
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() |
||
43 | } |
||
44 |