jonnybarnes.uk/app/Console/Kernel.php

45 lines
961 B
PHP
Raw Normal View History

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
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
2016-09-17 20:50:22 +01:00
Commands\ParseCachedWebMentions::class,
Commands\ReDownloadWebMentions::class,
2016-05-19 15:01:28 +01:00
];
/**
* Define the application's command schedule.
*
* @return void
2022-12-23 10:30:42 +00:00
*
2022-04-17 09:46:50 +01:00
* @codeCoverageIgnore
2016-05-19 15:01:28 +01:00
*/
protected function schedule(Schedule $schedule)
{
$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
/**
* Register the commands for the application.
2016-09-06 16:40:39 +01:00
*
* @return void
*/
protected function commands()
{
2019-10-27 19:31:33 +00:00
$this->load(__DIR__ . '/Commands');
2016-09-06 16:40:39 +01:00
require base_path('routes/console.php');
}
2016-05-19 15:01:28 +01:00
}