This commit is contained in:
@@ -234,6 +234,20 @@ class Services extends BaseService
|
||||
);
|
||||
}
|
||||
|
||||
public static function staffDirectorySync(bool $getShared = true): \App\Services\StaffDirectorySyncService
|
||||
{
|
||||
if ($getShared) {
|
||||
return static::getSharedInstance('staffDirectorySync');
|
||||
}
|
||||
|
||||
return new \App\Services\StaffDirectorySyncService(
|
||||
model(\App\Models\StaffModel::class),
|
||||
model(\App\Models\UserModel::class),
|
||||
model(\App\Models\ConfigurationModel::class),
|
||||
\Config\Database::connect()
|
||||
);
|
||||
}
|
||||
|
||||
public static function schoolYearManagement(bool $getShared = true): \App\Services\SchoolYearManagementService
|
||||
{
|
||||
if ($getShared) {
|
||||
|
||||
@@ -7,12 +7,12 @@ class SessionTimeout
|
||||
// Session timeout in seconds (30 minutes)
|
||||
public const TIMEOUT_DURATION = 1800;
|
||||
|
||||
// Show warning after 25 minutes of inactivity (5 minutes before timeout)
|
||||
public const WARNING_THRESHOLD = 1500;
|
||||
// Show warning during the last 30 seconds before timeout.
|
||||
public const WARNING_THRESHOLD = 1770;
|
||||
|
||||
// Server-side check interval (in seconds)
|
||||
public const CHECK_INTERVAL = 60; // 1 minute
|
||||
public const CHECK_INTERVAL = 5;
|
||||
|
||||
// Client-side check interval (in milliseconds)
|
||||
public const CLIENT_CHECK_INTERVAL = 60000; // 1 minute
|
||||
public const CLIENT_CHECK_INTERVAL = 5000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user