mirror of
https://github.com/koel/koel
synced 2024-11-27 22:40:26 +00:00
24 lines
658 B
PHP
24 lines
658 B
PHP
<?php
|
|
|
|
namespace App\Console;
|
|
|
|
use App\Console\Commands\PruneLibraryCommand;
|
|
use App\Console\Commands\ScanCommand;
|
|
use App\Console\Commands\SyncPodcastsCommand;
|
|
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();
|
|
$schedule->command(SyncPodcastsCommand::class)->daily();
|
|
}
|
|
}
|