2016-05-19 15:01:28 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console;
|
|
|
|
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
|
|
|
|
class Kernel extends ConsoleKernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Define the application's command schedule.
|
|
|
|
*/
|
2023-02-18 09:34:57 +00:00
|
|
|
protected function schedule(Schedule $schedule): void
|
2016-05-19 15:01:28 +01:00
|
|
|
{
|
2017-09-08 20:11:38 +01:00
|
|
|
$schedule->command('horizon:snapshot')->everyFiveMinutes();
|
2023-02-17 09:41:14 +00:00
|
|
|
$schedule->command('cache:prune-stale-tags')->hourly();
|
2016-05-19 15:01:28 +01:00
|
|
|
}
|
2016-09-06 16:40:39 +01:00
|
|
|
|
|
|
|
/**
|
2017-09-04 19:34:39 +01:00
|
|
|
* Register the commands for the application.
|
2016-09-06 16:40:39 +01:00
|
|
|
*/
|
2023-02-18 09:34:57 +00:00
|
|
|
protected function commands(): void
|
2016-09-06 16:40:39 +01:00
|
|
|
{
|
2023-06-09 18:31:53 +01:00
|
|
|
$this->load(__DIR__.'/Commands');
|
2017-09-04 19:34:39 +01:00
|
|
|
|
2016-09-06 16:40:39 +01:00
|
|
|
require base_path('routes/console.php');
|
|
|
|
}
|
2016-05-19 15:01:28 +01:00
|
|
|
}
|