fix enrollment for the new school-year
Tests / PHPUnit (push) Successful in 1m26s

This commit is contained in:
root
2026-08-07 23:43:31 -04:00
parent b6f3b14e7b
commit 1ef2800f12
66 changed files with 8997 additions and 498 deletions
+22
View File
@@ -279,4 +279,26 @@ class Services extends BaseService
\Config\Database::connect()
);
}
public static function enrollmentTransition(bool $getShared = true): \App\Services\EnrollmentTransitionService
{
if ($getShared) {
return static::getSharedInstance('enrollmentTransition');
}
return new \App\Services\EnrollmentTransitionService(\Config\Database::connect());
}
public static function enrollmentRegistrationEmail(bool $getShared = true): \App\Services\EnrollmentRegistrationEmailService
{
if ($getShared) {
return static::getSharedInstance('enrollmentRegistrationEmail');
}
return new \App\Services\EnrollmentRegistrationEmailService(
\Config\Database::connect(),
static::enrollmentTransition(),
static::emailService()
);
}
}