2018-08-20 22:42:54 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2021-06-04 04:17:16 +08:00
|
|
|
use App\Cron\Hourly\ClearExpiredSimbrief;
|
2021-03-03 04:43:34 +08:00
|
|
|
use App\Cron\Hourly\DeletePireps;
|
2019-08-07 05:48:00 +08:00
|
|
|
use App\Cron\Hourly\RemoveExpiredBids;
|
|
|
|
use App\Cron\Hourly\RemoveExpiredLiveFlights;
|
2018-08-27 00:40:04 +08:00
|
|
|
use App\Cron\Nightly\ApplyExpenses;
|
2019-08-07 05:48:00 +08:00
|
|
|
use App\Cron\Nightly\NewVersionCheck;
|
2018-08-27 00:40:04 +08:00
|
|
|
use App\Cron\Nightly\PilotLeave;
|
|
|
|
use App\Cron\Nightly\RecalculateBalances;
|
2018-08-20 22:42:54 +08:00
|
|
|
use App\Cron\Nightly\RecalculateStats;
|
|
|
|
use App\Cron\Nightly\SetActiveFlights;
|
2022-02-12 05:24:06 +08:00
|
|
|
use App\Events\CronFifteenMinute;
|
|
|
|
use App\Events\CronFiveMinute;
|
2018-08-25 01:07:14 +08:00
|
|
|
use App\Events\CronHourly;
|
2018-08-20 22:42:54 +08:00
|
|
|
use App\Events\CronMonthly;
|
|
|
|
use App\Events\CronNightly;
|
2022-02-12 05:24:06 +08:00
|
|
|
use App\Events\CronThirtyMinute;
|
2018-08-20 22:42:54 +08:00
|
|
|
use App\Events\CronWeekly;
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
|
2018-08-20 22:48:39 +08:00
|
|
|
/**
|
|
|
|
* All of the hooks for the cron jobs
|
|
|
|
*/
|
2018-08-20 22:42:54 +08:00
|
|
|
class CronServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
protected $listen = [
|
2022-02-12 05:24:06 +08:00
|
|
|
CronFiveMinute::class => [],
|
|
|
|
CronFifteenMinute::class => [],
|
|
|
|
CronThirtyMinute::class => [],
|
|
|
|
CronHourly::class => [
|
|
|
|
DeletePireps::class,
|
|
|
|
RemoveExpiredBids::class,
|
|
|
|
RemoveExpiredLiveFlights::class,
|
|
|
|
ClearExpiredSimbrief::class,
|
|
|
|
],
|
2018-08-20 22:42:54 +08:00
|
|
|
CronNightly::class => [
|
|
|
|
ApplyExpenses::class,
|
|
|
|
RecalculateBalances::class,
|
|
|
|
PilotLeave::class,
|
|
|
|
SetActiveFlights::class,
|
|
|
|
RecalculateStats::class,
|
2019-08-07 05:48:00 +08:00
|
|
|
NewVersionCheck::class,
|
2018-08-20 22:42:54 +08:00
|
|
|
],
|
|
|
|
CronWeekly::class => [
|
|
|
|
],
|
|
|
|
CronMonthly::class => [
|
2018-08-27 00:40:04 +08:00
|
|
|
\App\Cron\Monthly\ApplyExpenses::class,
|
2018-08-20 22:42:54 +08:00
|
|
|
],
|
|
|
|
];
|
|
|
|
}
|