HEX
Server: Apache
System: Linux server3230.server-vps.com 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: lzgqnjwu (1002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/1122/cwd/console/controllers/ReminderController.php
<?php

namespace console\controllers;

use common\services\ReminderDispatchService;
use yii\console\Controller;
use yii\console\ExitCode;

/**
 * Send due client reminders (cron every minute).
 *
 * Example: * * * * * php /path/to/yii reminder/send-due
 */
class ReminderController extends Controller
{
    public function actionSendDue(): int
    {
        $count = (new ReminderDispatchService())->sendDueReminders();
        $this->stdout('Reminders sent: ' . $count . "\n");

        return ExitCode::OK;
    }
}