Files
monica/app/Console/Kernel.php
T
Régis Freyd a2172f0851 Add style CI (#503)
Hopefully this will result in slightly better code.
2017-07-26 21:02:55 -04:00

39 lines
1.1 KiB
PHP

<?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 = [
// Commands\Inspire::class,
'App\Console\Commands\ResetTestDB',
'App\Console\Commands\SendNotifications',
'App\Console\Commands\CalculateStatistics',
'App\Console\Commands\ImportCSV',
'App\Console\Commands\SetupProduction',
'App\Console\Commands\ImportVCards',
'App\Console\Commands\PingVersionServer',
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('monica:sendnotifications')->hourly();
$schedule->command('monica:calculatestatistics')->daily();
$schedule->command('monica:ping')->daily();
}
}