Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Enterprise\Sso\Http\Actions;
use HiEvents\DomainObjects\AccountDomainObject;
use HiEvents\DomainObjects\Enums\Permission;
use HiEvents\Enterprise\Sso\Resources\SsoEnforcementPreviewResource;
use HiEvents\Enterprise\Sso\Services\Application\Handlers\SsoEnforcementHandler;
use HiEvents\Http\Attributes\RequiresPermission;
use Illuminate\Http\JsonResponse;
#[RequiresPermission(Permission::MANAGE_ACCOUNT)]
class GetSsoEnforcementPreviewAction extends BaseAccountSsoAction
{
public function __construct(
private readonly SsoEnforcementHandler $handler,
) {}
public function __invoke(int $accountId): JsonResponse
{
$this->isActionAuthorized($accountId, AccountDomainObject::class);
return $this->resourceResponse(SsoEnforcementPreviewResource::class, $this->handler->preview($accountId));
}
}