936cd2efd3
* Implement PIREP deletion #1014 * Style fixes * Add delete button to PIREP listing page * Remove extra import
51 lines
1.3 KiB
PHP
51 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Cron\Hourly\DeletePireps;
|
|
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 => [
|
|
DeletePireps::class,
|
|
RemoveExpiredBids::class,
|
|
RemoveExpiredLiveFlights::class,
|
|
],
|
|
];
|
|
}
|