2015-07-12 21:01:42 +02:00
|
|
|
<?php
|
|
|
|
|
2015-09-10 20:31:09 +02:00
|
|
|
namespace BookStack\Console;
|
2015-07-12 21:01:42 +02:00
|
|
|
|
|
|
|
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 = [
|
2015-09-10 20:31:09 +02:00
|
|
|
\BookStack\Console\Commands\Inspire::class,
|
2015-11-21 18:22:14 +01:00
|
|
|
\BookStack\Console\Commands\ResetViews::class,
|
2015-07-12 21:01:42 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the application's command schedule.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function schedule(Schedule $schedule)
|
|
|
|
{
|
|
|
|
$schedule->command('inspire')
|
|
|
|
->hourly();
|
|
|
|
}
|
|
|
|
}
|