Changeset View
Changeset View
Standalone View
Standalone View
src/app/Observers/DomainObserver.php
Show All 30 Lines | class DomainObserver | ||||
* | * | ||||
* @param \App\Domain $domain The domain. | * @param \App\Domain $domain The domain. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function created(Domain $domain) | public function created(Domain $domain) | ||||
{ | { | ||||
// Create domain record in LDAP, then check if it exists in DNS | // Create domain record in LDAP, then check if it exists in DNS | ||||
/* | |||||
$chain = [ | |||||
new \App\Jobs\DomainVerify($domain), | |||||
]; | |||||
\App\Jobs\DomainCreate::withChain($chain)->dispatch($domain); | |||||
*/ | |||||
\App\Jobs\DomainCreate::dispatch($domain); | \App\Jobs\DomainCreate::dispatch($domain); | ||||
} | } | ||||
public function deleting(Domain $domain) | |||||
{ | |||||
// | |||||
} | |||||
/** | /** | ||||
* Handle the domain "updated" event. | * Handle the domain "updated" event. | ||||
* | * | ||||
* @param \App\Domain $domain The domain. | * @param \App\Domain $domain The domain. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function updated(Domain $domain) | public function updated(Domain $domain) | ||||
{ | { | ||||
// | // | ||||
} | } | ||||
/** | /** | ||||
* Handle the domain "deleted" event. | * Handle the domain "deleted" event. | ||||
* | * | ||||
* @param \App\Domain $domain The domain. | * @param \App\Domain $domain The domain. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function deleted(Domain $domain) | public function deleted(Domain $domain) | ||||
{ | { | ||||
// | \App\Jobs\DomainDelete::dispatch($domain); | ||||
} | } | ||||
/** | /** | ||||
* Handle the domain "restored" event. | * Handle the domain "restored" event. | ||||
* | * | ||||
* @param \App\Domain $domain The domain. | * @param \App\Domain $domain The domain. | ||||
* | * | ||||
* @return void | * @return void | ||||
Show All 18 Lines |