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 = [ | $chain = [ | ||||
new \App\Jobs\ProcessDomainVerify($domain), | new \App\Jobs\ProcessDomainVerify($domain), | ||||
]; | ]; | ||||
\App\Jobs\ProcessDomainCreate::withChain($chain)->dispatch($domain); | \App\Jobs\ProcessDomainCreate::withChain($chain)->dispatch($domain); | ||||
*/ | |||||
\App\Jobs\ProcessDomainCreate::dispatch($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 | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |