2017-01-30 20:40:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console;
|
2015-03-12 01:44:39 +01:00
|
|
|
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
2017-01-30 20:40:43 +01:00
|
|
|
use Utils;
|
2015-03-12 01:44:39 +01:00
|
|
|
|
2015-09-25 11:57:40 +02:00
|
|
|
class Kernel extends ConsoleKernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The Artisan commands provided by your application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $commands = [
|
|
|
|
'App\Console\Commands\SendRecurringInvoices',
|
2016-03-24 18:02:45 +01:00
|
|
|
'App\Console\Commands\RemoveOrphanedDocuments',
|
2015-09-25 11:57:40 +02:00
|
|
|
'App\Console\Commands\ResetData',
|
|
|
|
'App\Console\Commands\CheckData',
|
2016-04-21 12:01:36 +02:00
|
|
|
'App\Console\Commands\PruneData',
|
2016-05-04 13:53:27 +02:00
|
|
|
'App\Console\Commands\CreateTestData',
|
2017-04-07 12:43:48 +02:00
|
|
|
'App\Console\Commands\CreateLuisData',
|
2020-02-23 11:36:40 +01:00
|
|
|
'App\Console\Commands\MobileLocalization',
|
2015-05-08 10:21:29 +02:00
|
|
|
'App\Console\Commands\SendRenewalInvoices',
|
2016-02-22 20:23:15 +01:00
|
|
|
'App\Console\Commands\ChargeRenewalInvoices',
|
2015-09-17 21:01:06 +02:00
|
|
|
'App\Console\Commands\SendReminders',
|
2016-08-03 11:40:40 +02:00
|
|
|
'App\Console\Commands\TestOFX',
|
2016-12-08 14:41:35 +01:00
|
|
|
'App\Console\Commands\MakeModule',
|
2016-12-08 19:00:13 +01:00
|
|
|
'App\Console\Commands\MakeClass',
|
2017-04-30 18:09:13 +02:00
|
|
|
'App\Console\Commands\InitLookup',
|
2017-05-26 12:21:32 +02:00
|
|
|
'App\Console\Commands\CalculatePayouts',
|
2017-07-25 20:48:36 +02:00
|
|
|
'App\Console\Commands\UpdateKey',
|
2020-03-05 21:30:48 +01:00
|
|
|
'App\Console\Commands\ExportMigrations',
|
2015-09-25 11:57:40 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the application's command schedule.
|
|
|
|
*
|
2017-01-30 20:40:43 +01:00
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
|
|
*
|
2015-09-25 11:57:40 +02:00
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function schedule(Schedule $schedule)
|
|
|
|
{
|
|
|
|
$logFile = storage_path() . '/logs/cron.log';
|
|
|
|
|
|
|
|
$schedule
|
|
|
|
->command('ninja:send-invoices --force')
|
|
|
|
->sendOutputTo($logFile)
|
|
|
|
->withoutOverlapping()
|
|
|
|
->hourly();
|
2015-03-12 01:44:39 +01:00
|
|
|
|
2015-09-25 11:57:40 +02:00
|
|
|
$schedule
|
|
|
|
->command('ninja:send-reminders --force')
|
|
|
|
->sendOutputTo($logFile)
|
|
|
|
->daily();
|
|
|
|
}
|
2015-03-12 01:44:39 +01:00
|
|
|
}
|