phpvms/app/Providers/EventServiceProvider.php

63 lines
1.6 KiB
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?php
namespace App\Providers;
use App\Events\Expenses;
use App\Events\Fares;
use App\Events\PirepFiled;
use App\Events\UserStatsChanged;
use App\Listeners\AwardHandler;
use App\Listeners\BidEventHandler;
use App\Listeners\ExpenseListener;
use App\Listeners\FareListener;
use App\Listeners\FinanceEventHandler;
use App\Listeners\PirepEventsHandler;
use App\Listeners\UserStateListener;
use App\Notifications\NotificationEventsHandler;
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,
],
Fares::class => [
FareListener::class,
],
PirepFiled::class => [
UserStateListener::class,
],
2018-09-09 21:48:32 +08:00
Registered::class => [
SendEmailVerificationNotification::class,
],
UserStatsChanged::class => [
],
UpdateAvailable::class => [],
UpdateSucceeded::class => [],
// Log messages out to the console if running there
'Illuminate\Log\Events\MessageLogged' => [
'App\Listeners\MessageLoggedListener',
],
2017-06-09 02:28:26 +08:00
];
protected $subscribe = [
BidEventHandler::class,
FinanceEventHandler::class,
NotificationEventsHandler::class,
AwardHandler::class,
PirepEventsHandler::class,
];
2017-06-09 02:28:26 +08:00
}