Cachet/app/Console/Kernel.php

40 lines
895 B
PHP
Raw Normal View History

2015-03-20 18:30:45 -06:00
<?php
/*
* This file is part of Cachet.
*
2015-07-06 17:37:01 +01:00
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2015-03-20 18:30:45 -06:00
namespace CachetHQ\Cachet\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 = [
'CachetHQ\Cachet\Console\Commands\DemoSeederCommand',
2015-03-20 18:30:45 -06:00
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2015-08-30 22:45:27 +01:00
*
* @return void
2015-03-20 18:30:45 -06:00
*/
protected function schedule(Schedule $schedule)
{
2015-05-24 16:33:03 -05:00
$schedule->command('queue:work --sleep=3 --tries=3')->everyMinute();
2015-03-20 18:30:45 -06:00
}
}