mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 17:31:09 -06:00
38 lines
734 B
PHP
38 lines
734 B
PHP
<?php namespace FireflyIII\Console;
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
/**
|
|
* Class Kernel
|
|
*
|
|
* @package FireflyIII\Console
|
|
*/
|
|
class Kernel extends ConsoleKernel
|
|
{
|
|
|
|
/**
|
|
* The Artisan commands provided by your application.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $commands
|
|
= [
|
|
'FireflyIII\Console\Commands\Inspire',
|
|
];
|
|
|
|
/**
|
|
* Define the application's command schedule.
|
|
*
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function schedule(Schedule $schedule)
|
|
{
|
|
$schedule->command('inspire')
|
|
->hourly();
|
|
}
|
|
|
|
}
|