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;
|
|
|
|
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();
|
|
|
|
}
|
2015-12-13 04:42:28 +00:00
|
|
|
}
|