2020-10-21 15:26:21 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console;
|
|
|
|
|
|
2024-01-17 14:40:02 +01:00
|
|
|
use App\Jobs\DeleteOlds\DeleteOldCustomers;
|
2020-10-21 15:26:21 +02:00
|
|
|
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
|
|
|
|
|
*/
|
2022-01-11 12:39:28 +01:00
|
|
|
protected $commands = [];
|
2020-10-21 15:26:21 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Define the application's command schedule.
|
|
|
|
|
*
|
2022-01-11 12:39:28 +01:00
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
2020-10-21 15:26:21 +02:00
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
protected function schedule(Schedule $schedule)
|
|
|
|
|
{
|
2026-07-23 15:02:08 +02:00
|
|
|
// ! ATTENTION: Le job DeleteOldCustomers a été désactivé, car il n'est pas applicable pour l'instant.
|
|
|
|
|
// ! Il faudra décorreler les customers des gains et participations via les FK.
|
|
|
|
|
// $schedule->job(DeleteOldCustomers::class)->dailyAt('22:50');
|
2020-10-21 15:26:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Register the commands for the application.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
protected function commands()
|
|
|
|
|
{
|
2021-08-18 17:08:02 +02:00
|
|
|
$this->load(__DIR__ . '/Commands');
|
2020-10-21 15:26:21 +02:00
|
|
|
|
|
|
|
|
require base_path('routes/console.php');
|
|
|
|
|
}
|
|
|
|
|
}
|