9e5386264f
* SimBrief integration #405 * Add briefing as API response; add acars_xml field #405
49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Cron\Hourly\RemoveExpiredBids;
|
|
use App\Cron\Hourly\RemoveExpiredLiveFlights;
|
|
use App\Cron\Nightly\ApplyExpenses;
|
|
use App\Cron\Nightly\ClearExpiredSimbrief;
|
|
use App\Cron\Nightly\NewVersionCheck;
|
|
use App\Cron\Nightly\PilotLeave;
|
|
use App\Cron\Nightly\RecalculateBalances;
|
|
use App\Cron\Nightly\RecalculateStats;
|
|
use App\Cron\Nightly\SetActiveFlights;
|
|
use App\Events\CronHourly;
|
|
use App\Events\CronMonthly;
|
|
use App\Events\CronNightly;
|
|
use App\Events\CronWeekly;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
/**
|
|
* All of the hooks for the cron jobs
|
|
*/
|
|
class CronServiceProvider extends ServiceProvider
|
|
{
|
|
protected $listen = [
|
|
CronNightly::class => [
|
|
ApplyExpenses::class,
|
|
RecalculateBalances::class,
|
|
PilotLeave::class,
|
|
SetActiveFlights::class,
|
|
RecalculateStats::class,
|
|
NewVersionCheck::class,
|
|
ClearExpiredSimbrief::class,
|
|
],
|
|
|
|
CronWeekly::class => [
|
|
],
|
|
|
|
CronMonthly::class => [
|
|
\App\Cron\Monthly\ApplyExpenses::class,
|
|
],
|
|
|
|
CronHourly::class => [
|
|
RemoveExpiredBids::class,
|
|
RemoveExpiredLiveFlights::class,
|
|
],
|
|
];
|
|
}
|