remove codeigniter
This commit is contained in:
@@ -18,7 +18,7 @@ class Configuration extends BaseModel
|
||||
];
|
||||
|
||||
/* =========================
|
||||
* CI method equivalents
|
||||
* legacy method equivalents
|
||||
* ========================= */
|
||||
|
||||
/**
|
||||
@@ -94,7 +94,7 @@ class Configuration extends BaseModel
|
||||
* Backward-compatible helper (keeps your "semester" special-case).
|
||||
*
|
||||
* NOTE: In Laravel it’s better to call SemesterRangeService directly from services/controllers,
|
||||
* but this keeps behavior consistent with the CI model.
|
||||
* but this keeps behavior consistent with the legacy model.
|
||||
*/
|
||||
public static function getConfig(string $key): ?string
|
||||
{
|
||||
@@ -103,7 +103,7 @@ class Configuration extends BaseModel
|
||||
if ($key === 'semester') {
|
||||
try {
|
||||
// If you have this service in Laravel, inject/resolve it from container.
|
||||
// This call assumes the service constructor can accept Configuration model (like CI did).
|
||||
// This call assumes the service constructor can accept Configuration model (like legacy did).
|
||||
$semester = app(\App\Services\SemesterRangeService::class)->getSemesterForDate();
|
||||
if (is_string($semester) && $semester !== '') {
|
||||
return $semester;
|
||||
|
||||
Reference in New Issue
Block a user