jonnybarnes.uk/app/Console/Kernel.php

45 lines
1,005 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,
Commands\GenerateToken::class,
2016-05-19 15:01:28 +01:00
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('horizon:snapshot')->everyFiveMinutes();
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()
{
$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
}