mirror of
https://github.com/phpmon/website
synced 2026-03-31 17:20:09 +02:00
Minimal Laravel 10 application
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user