34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniter\Config\BaseService;
|
|
|
|
class Commands extends BaseService
|
|
{
|
|
public static function init()
|
|
{
|
|
// Register all custom commands
|
|
$commands = [
|
|
\App\Commands\AttendanceAutoPublishCommand::class,
|
|
\App\Commands\CheckMissedPayments::class,
|
|
\App\Commands\CleanupExpiredNotifications::class,
|
|
\App\Commands\CleanupPasswordResets::class,
|
|
\App\Commands\ConfigUpdate::class,
|
|
\App\Commands\DeleteInactiveUsers::class,
|
|
\App\Commands\RecalculateInvoices::class,
|
|
\App\Commands\SendAbsenteesSummary::class,
|
|
\App\Commands\SendLatesSummary::class,
|
|
\App\Commands\SendMonthlyPaymentNotifications::class,
|
|
\App\Commands\SendTestPaymentNotification::class,
|
|
\App\Commands\RecalculateAttendance::class,
|
|
];
|
|
|
|
foreach ($commands as $command) {
|
|
if (class_exists($command)) {
|
|
\CodeIgniter\CLI\Commands::addCommand(new $command());
|
|
}
|
|
}
|
|
}
|
|
}
|