2020-12-01 17:02:10 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console;
|
|
|
|
|
|
2022-03-29 18:09:29 +02:00
|
|
|
use App\Console\Commands\DeleteUnconfirmedCustomers;
|
2026-01-06 17:05:32 +01:00
|
|
|
use App\Jobs\SendTransferredToDigitalCountMail;
|
2021-10-29 12:53:46 +02:00
|
|
|
use App\Jobs\StartStatJobs;
|
2020-12-01 17:02:10 +01: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
|
|
|
|
|
*/
|
2021-07-22 15:14:07 +02:00
|
|
|
protected $commands = [];
|
2020-12-01 17:02:10 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Define the application's command schedule.
|
|
|
|
|
*
|
2021-12-19 15:57:24 +01:00
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
2020-12-01 17:02:10 +01:00
|
|
|
* @return void
|
|
|
|
|
*/
|
2023-09-06 17:24:53 +02:00
|
|
|
protected function schedule(Schedule $schedule): void
|
2020-12-01 17:02:10 +01:00
|
|
|
{
|
2023-09-06 17:24:53 +02:00
|
|
|
// @codeCoverageIgnoreStart
|
2021-10-29 12:53:46 +02:00
|
|
|
$schedule->job(StartStatJobs::class)->dailyAt('03:30');
|
2026-05-12 13:23:25 +02:00
|
|
|
$schedule->job(SendTransferredToDigitalCountMail::class)->weekdays()->at('07:00');
|
2022-03-29 18:09:29 +02:00
|
|
|
$schedule->command(DeleteUnconfirmedCustomers::class)->dailyAt('05:30');
|
2023-09-06 17:24:53 +02:00
|
|
|
// @codeCoverageIgnoreEnd
|
2020-12-01 17:02:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Register the commands for the application.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2023-09-06 17:24:53 +02:00
|
|
|
protected function commands(): void
|
2020-12-01 17:02:10 +01:00
|
|
|
{
|
2021-02-28 12:04:49 +01:00
|
|
|
$this->load(__DIR__ . '/Commands');
|
2020-12-01 17:02:10 +01:00
|
|
|
|
|
|
|
|
require base_path('routes/console.php');
|
|
|
|
|
}
|
|
|
|
|
}
|