mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
22 lines
547 B
PHP
22 lines
547 B
PHP
<?php
|
|
|
|
namespace App\Console;
|
|
|
|
use App\Console\Commands\PruneLibraryCommand;
|
|
use App\Console\Commands\ScanCommand;
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
class Kernel extends ConsoleKernel
|
|
{
|
|
protected function commands(): void
|
|
{
|
|
$this->load(__DIR__ . '/Commands');
|
|
}
|
|
|
|
protected function schedule(Schedule $schedule): void
|
|
{
|
|
$schedule->command(ScanCommand::class)->daily();
|
|
$schedule->command(PruneLibraryCommand::class)->daily();
|
|
}
|
|
}
|