2021-11-19 11:00:00 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console;
|
|
|
|
|
|
2022-04-06 10:36:10 +02:00
|
|
|
use App\Console\Commands\LdcWebStatusChecker;
|
2021-11-19 11:00:00 +01:00
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
|
|
|
|
|
|
class Kernel extends ConsoleKernel
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The Artisan commands provided by your application.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
2022-04-06 10:36:10 +02:00
|
|
|
protected $commands = [];
|
2021-11-19 11:00:00 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Define the application's command schedule.
|
|
|
|
|
*
|
2022-04-05 09:45:12 +02:00
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
2021-11-19 11:00:00 +01:00
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
protected function schedule(Schedule $schedule)
|
|
|
|
|
{
|
2022-04-06 10:36:10 +02:00
|
|
|
$schedule->command(LdcWebStatusChecker::class)->everyFifteenMinutes();
|
2021-11-19 11:00:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Register the commands for the application.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
protected function commands()
|
|
|
|
|
{
|
2022-04-05 09:45:12 +02:00
|
|
|
$this->load(__DIR__ . '/Commands');
|
2021-11-19 11:00:00 +01:00
|
|
|
}
|
|
|
|
|
}
|