2015-12-13 04:42:28 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console;
|
|
|
|
|
2024-03-09 14:08:25 +00:00
|
|
|
use App\Console\Commands\PruneLibraryCommand;
|
|
|
|
use App\Console\Commands\ScanCommand;
|
2024-05-19 05:49:42 +00:00
|
|
|
use App\Console\Commands\SyncPodcastsCommand;
|
2024-03-09 14:08:25 +00:00
|
|
|
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
|
|
|
}
|
2024-03-09 14:08:25 +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();
|
2024-03-09 14:08:25 +00:00
|
|
|
}
|
2015-12-13 04:42:28 +00:00
|
|
|
}
|