a2172f0851
Hopefully this will result in slightly better code.
39 lines
1.1 KiB
PHP
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();
|
|
}
|
|
}
|