Minimal Laravel 10 application

This commit is contained in:
2024-02-15 12:04:21 +01:00
parent 1387db39cf
commit 49a9ac300b
44 changed files with 114 additions and 801 deletions

View File

@@ -1,21 +1,25 @@
<?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)
protected function schedule(Schedule $schedule): void
{
$schedule->command('github:fetch')->everySixHours();
$schedule->command(RetrieveGitHubStats::class)
->everySixHours();
}
#[\Override]
protected function commands()
protected function commands(): void
{
$this->load(__DIR__.'/Commands');
$this->load(__DIR__ . '/../Commands');
}
}