2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2018-03-17 09:12:56 +08:00
|
|
|
use App\Events\Expenses;
|
2019-09-17 01:08:26 +08:00
|
|
|
use App\Events\PirepFiled;
|
2018-03-18 01:55:50 +08:00
|
|
|
use App\Events\UserStatsChanged;
|
2020-10-23 19:28:22 +08:00
|
|
|
use App\Listeners\AwardHandler;
|
2019-11-20 23:16:01 +08:00
|
|
|
use App\Listeners\BidEventHandler;
|
2018-03-17 09:12:56 +08:00
|
|
|
use App\Listeners\ExpenseListener;
|
2019-11-20 23:16:01 +08:00
|
|
|
use App\Listeners\FinanceEventHandler;
|
2021-03-30 02:53:35 +08:00
|
|
|
use App\Listeners\PirepEventsHandler;
|
2019-11-20 23:16:01 +08:00
|
|
|
use App\Listeners\UserStateListener;
|
|
|
|
use App\Notifications\EventHandler;
|
2020-02-10 23:40:42 +08:00
|
|
|
use Codedge\Updater\Events\UpdateAvailable;
|
|
|
|
use Codedge\Updater\Events\UpdateSucceeded;
|
2018-09-09 21:48:32 +08:00
|
|
|
use Illuminate\Auth\Events\Registered;
|
|
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
2018-02-21 12:33:09 +08:00
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
2017-06-09 02:28:26 +08:00
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
protected $listen = [
|
2018-08-20 22:42:54 +08:00
|
|
|
Expenses::class => [
|
2018-08-27 00:40:04 +08:00
|
|
|
ExpenseListener::class,
|
2018-03-02 06:20:13 +08:00
|
|
|
],
|
2018-03-17 09:12:56 +08:00
|
|
|
|
2019-09-17 01:08:26 +08:00
|
|
|
PirepFiled::class => [
|
2019-11-20 23:16:01 +08:00
|
|
|
UserStateListener::class,
|
2019-09-17 01:08:26 +08:00
|
|
|
],
|
|
|
|
|
2018-09-09 21:48:32 +08:00
|
|
|
Registered::class => [
|
|
|
|
SendEmailVerificationNotification::class,
|
|
|
|
],
|
|
|
|
|
2018-03-18 01:55:50 +08:00
|
|
|
UserStatsChanged::class => [
|
2020-10-23 19:28:22 +08:00
|
|
|
|
2018-03-17 13:55:39 +08:00
|
|
|
],
|
2020-02-10 23:40:42 +08:00
|
|
|
|
2020-02-11 06:47:46 +08:00
|
|
|
UpdateAvailable::class => [],
|
|
|
|
UpdateSucceeded::class => [],
|
2017-06-09 02:28:26 +08:00
|
|
|
];
|
2018-04-13 05:12:32 +08:00
|
|
|
|
2017-12-23 02:00:57 +08:00
|
|
|
protected $subscribe = [
|
2019-11-20 23:16:01 +08:00
|
|
|
BidEventHandler::class,
|
|
|
|
FinanceEventHandler::class,
|
|
|
|
EventHandler::class,
|
2020-10-23 19:28:22 +08:00
|
|
|
AwardHandler::class,
|
2021-03-30 02:53:35 +08:00
|
|
|
PirepEventsHandler::class,
|
2017-12-23 02:00:57 +08:00
|
|
|
];
|
2017-06-09 02:28:26 +08:00
|
|
|
}
|