2019-05-20 07:37:41 +02: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.
|
|
|
|
*
|
|
|
|
* @return void
|
2020-10-12 15:44:11 +02:00
|
|
|
*
|
|
|
|
* @codeCoverageIgnore Because no code will always remains Not Executed code
|
2019-05-20 07:37:41 +02:00
|
|
|
*/
|
|
|
|
protected function schedule(Schedule $schedule)
|
|
|
|
{
|
2023-08-01 11:26:58 +02:00
|
|
|
$schedule->command('cache:prune-stale-tags')->hourly();
|
2019-05-20 07:37:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register the commands for the application.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function commands()
|
|
|
|
{
|
2022-11-22 15:15:52 +01:00
|
|
|
$this->load(__DIR__ . '/Commands');
|
2019-05-20 07:37:41 +02:00
|
|
|
|
|
|
|
require base_path('routes/console.php');
|
|
|
|
}
|
|
|
|
}
|