koel/app/Console/Kernel.php

25 lines
658 B
PHP
Raw Normal View History

2015-12-13 04:42:28 +00:00
<?php
namespace App\Console;
use App\Console\Commands\PruneLibraryCommand;
use App\Console\Commands\ScanCommand;
2024-05-19 05:49:42 +00:00
use App\Console\Commands\SyncPodcastsCommand;
use Illuminate\Console\Scheduling\Schedule;
2015-12-13 04:42:28 +00:00
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
2020-12-22 20:11:22 +00:00
protected function commands(): void
2015-12-13 04:42:28 +00:00
{
2020-12-22 20:11:22 +00:00
$this->load(__DIR__ . '/Commands');
2015-12-13 04:42:28 +00:00
}
protected function schedule(Schedule $schedule): void
{
$schedule->command(ScanCommand::class)->daily();
$schedule->command(PruneLibraryCommand::class)->daily();
2024-05-19 05:49:42 +00:00
$schedule->command(SyncPodcastsCommand::class)->daily();
}
2015-12-13 04:42:28 +00:00
}