major update

This commit is contained in:
2026-03-04 15:56:58 +01:00
parent 16759a2732
commit 8f4dd5840d
478 changed files with 24313 additions and 8201 deletions

View File

@@ -6,18 +6,22 @@ use MintyPHP\Repository\Tenant\TenantRepository;
class AuthTenantGateway
{
public function __construct(private readonly TenantRepository $tenantRepository)
{
}
public function findById(int $tenantId): ?array
{
return (new TenantRepository())->find($tenantId);
return $this->tenantRepository->find($tenantId);
}
public function findByUuid(string $uuid): ?array
{
return (new TenantRepository())->findByUuid($uuid);
return $this->tenantRepository->findByUuid($uuid);
}
public function list(): array
{
return (new TenantRepository())->list();
return $this->tenantRepository->list();
}
}