jonnybarnes.uk/app/Console/Kernel.php

45 lines
1,002 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-09 12:14:00 +01:00
Commands\SecurityCheck::class,
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.
*
2019-10-27 19:31:33 +00:00
* @param Schedule $schedule
2016-05-19 15:01:28 +01:00
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('horizon:snapshot')->everyFiveMinutes();
2019-03-29 17:53:43 +00:00
$schedule->command('telescope:prune --hours=48')->daily();
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
}