Files
breadcrumb-the-shire/lib/Service/Auth/AuthTenantGateway.php

24 lines
463 B
PHP
Raw Normal View History

2026-02-23 12:58:19 +01:00
<?php
namespace MintyPHP\Service\Auth;
use MintyPHP\Repository\Tenant\TenantRepository;
class AuthTenantGateway
{
public function findById(int $tenantId): ?array
{
return (new TenantRepository())->find($tenantId);
}
public function findByUuid(string $uuid): ?array
{
return (new TenantRepository())->findByUuid($uuid);
}
public function list(): array
{
return (new TenantRepository())->list();
}
}