e12188b7d3
* Switch to semver format * Rewrite new version check to use Github Releases and cron * Styling * Remove v from in front of version * New version check test fix * Uncomment test case
47 lines
1.2 KiB
PHP
47 lines
1.2 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\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,
|
|
],
|
|
|
|
CronWeekly::class => [
|
|
],
|
|
|
|
CronMonthly::class => [
|
|
\App\Cron\Monthly\ApplyExpenses::class,
|
|
],
|
|
|
|
CronHourly::class => [
|
|
RemoveExpiredBids::class,
|
|
RemoveExpiredLiveFlights::class,
|
|
],
|
|
];
|
|
}
|