recreate project
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?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\SendAbsenteesSummary::class,
|
||||
\App\Commands\SendLatesSummary::class,
|
||||
\App\Commands\SendMonthlyPaymentNotifications::class,
|
||||
\App\Commands\SendTestPaymentNotification::class,
|
||||
\App\Commands\SyncPaypalPayments::class,
|
||||
\App\Commands\RecalculateAttendance::class,
|
||||
];
|
||||
|
||||
foreach ($commands as $command) {
|
||||
if (class_exists($command)) {
|
||||
\CodeIgniter\CLI\Commands::addCommand(new $command());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user