Changeset View
Changeset View
Standalone View
Standalone View
src/app/Handlers/DomainRegistration.php
<?php | <?php | ||||
namespace App\Handlers; | namespace App\Handlers; | ||||
class DomainRegistration extends \App\Handlers\Base | class DomainRegistration extends \App\Handlers\Base | ||||
{ | { | ||||
/** | |||||
* The entitleable class for this handler. | |||||
* | |||||
* @return string | |||||
*/ | |||||
public static function entitleableClass(): string | public static function entitleableClass(): string | ||||
{ | { | ||||
return \App\Domain::class; | return \App\Domain::class; | ||||
} | } | ||||
public static function preReq($entitlement, $domain): bool | |||||
{ | |||||
if (!$entitlement->sku->active) { | |||||
\Log::error("Sku not active"); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
} | } |