mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
feat: add scan and prune command to schedule
This commit is contained in:
parent
07b8e11619
commit
6217f1e36b
1 changed files with 9 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
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
|
||||
|
@ -10,4 +13,10 @@ class Kernel extends ConsoleKernel
|
|||
{
|
||||
$this->load(__DIR__ . '/Commands');
|
||||
}
|
||||
|
||||
protected function schedule(Schedule $schedule): void
|
||||
{
|
||||
$schedule->command(ScanCommand::class)->daily();
|
||||
$schedule->command(PruneLibraryCommand::class)->daily();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue