mirror of
https://github.com/phpmon/website
synced 2025-11-05 11:20:06 +01:00
26 lines
528 B
PHP
26 lines
528 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Console;
|
|
|
|
use App\Commands\RetrieveGitHubStats;
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
class Kernel extends ConsoleKernel
|
|
{
|
|
#[\Override]
|
|
protected function schedule(Schedule $schedule): void
|
|
{
|
|
$schedule->command(RetrieveGitHubStats::class)
|
|
->everySixHours();
|
|
}
|
|
|
|
#[\Override]
|
|
protected function commands(): void
|
|
{
|
|
$this->load(__DIR__ . '/../Commands');
|
|
}
|
|
}
|