force ldcweb:admin-secure-sync to run in staging

This commit is contained in:
Jérémy Munsch 2024-04-04 15:49:34 +02:00
parent 23f53c80b9
commit a4514fa3e6
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -12,8 +12,7 @@ class Kernel extends ConsoleKernel
*
* @var array
*/
protected $commands = [
];
protected $commands = [];
/**
* Define the application's command schedule.
@ -23,7 +22,10 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
// Write schedules here.
// * FIXME: remove this when swithing to latest php version and ldc-web-admin-secure-laravel package
if ($this->app->environment('staging')) {
$schedule->command('ldcweb:admin-secure-sync')->daily();
}
}
/**