Changeset View
Changeset View
Standalone View
Standalone View
src/app/Handlers/DomainRelay.php
- This file was added.
<?php | |||||
namespace App\Handlers; | |||||
class DomainRelay extends \App\Handlers\Base | |||||
{ | |||||
public static function entitleableClass() | |||||
{ | |||||
return \App\Domain::class; | |||||
} | |||||
public static function preReq($entitlement, $domain) | |||||
{ | |||||
if (!$entitlement->sku->active) { | |||||
\Log::error("Sku not active"); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
} |