src/Jobs/LDAPAllSyncJob.php 1 location
|
@@ 79-84 (lines=6) @@
|
76 |
|
public function process() |
77 |
|
{ |
78 |
|
$regenerateTime = Config::inst()->get(LDAPAllSyncJob::class, 'regenerate_time'); |
79 |
|
if ($regenerateTime) { |
80 |
|
$this->validateRegenerateTime(); |
81 |
|
|
82 |
|
$nextJob = Injector::inst()->create(LDAPAllSyncJob::class); |
83 |
|
singleton(QueuedJobService::class)->queueJob($nextJob, date('Y-m-d H:i:s', time() + $regenerateTime)); |
84 |
|
} |
85 |
|
|
86 |
|
$task = Injector::inst()->create(LDAPGroupSyncTask::class); |
87 |
|
$task->run(null); |
src/Jobs/LDAPMemberSyncJob.php 1 location
|
@@ 84-89 (lines=6) @@
|
81 |
|
LDAPMemberSyncJob::class, |
82 |
|
'regenerate_time' |
83 |
|
); |
84 |
|
if ($regenerateTime) { |
85 |
|
$this->validateRegenerateTime(); |
86 |
|
|
87 |
|
$nextJob = Injector::inst()->create(LDAPMemberSyncJob::class); |
88 |
|
singleton(QueuedJobService::class)->queueJob($nextJob, date('Y-m-d H:i:s', time() + $regenerateTime)); |
89 |
|
} |
90 |
|
|
91 |
|
$task = Injector::inst()->create(LDAPMemberSyncTask::class); |
92 |
|
$task->run(null); |