ldc-flucollector/app/Console/Kernel.php

39 lines
835 B
PHP
Raw Permalink Normal View History

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.
*
* @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()
{
$this->load(__DIR__ . '/Commands');
2021-11-19 11:00:00 +01:00
}
}