Changeset View
Changeset View
Standalone View
Standalone View
src/app/Observers/DomainObserver.php
Show All 30 Lines | class DomainObserver | ||||
* Handle the domain "created" event. | * Handle the domain "created" event. | ||||
* | * | ||||
* @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 | ||||
// Note: DomainCreate job will dispatch DomainVerify job | |||||
\App\Jobs\DomainCreate::dispatch($domain); | \App\Jobs\DomainCreate::dispatch($domain); | ||||
} | } | ||||
/** | /** | ||||
* Handle the domain "deleting" event. | * Handle the domain "deleting" event. | ||||
* | * | ||||
* @param \App\Domain $domain The domain. | * @param \App\Domain $domain The domain. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |