Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/ProcessDomainCreate.php
- This file was copied to src/app/Jobs/ProcessDomainVerify.php.
Show All 37 Lines | class ProcessDomainCreate implements ShouldQueue | ||||
/** | /** | ||||
* Execute the job. | * Execute the job. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
if (!$this->domain->isLdapReady()) { | |||||
LDAP::createDomain($this->domain); | LDAP::createDomain($this->domain); | ||||
$this->domain->status |= Domain::STATUS_LDAP_READY; | |||||
$this->domain->save(); | |||||
} | |||||
} | } | ||||
} | } |