refactor(arch): enforce gateway compliance and remove service-wrapping gateways

This commit is contained in:
2026-03-13 11:31:33 +01:00
parent 082fa4c9a5
commit 892da0048d
96 changed files with 1117 additions and 1060 deletions

View File

@@ -5,7 +5,6 @@ namespace MintyPHP\Service\Tenant;
use MintyPHP\Repository\Org\DepartmentRepositoryInterface;
use MintyPHP\Repository\Tenant\TenantRepositoryInterface;
use MintyPHP\Repository\Tenant\UserTenantRepositoryInterface;
use MintyPHP\Service\Access\PermissionGateway;
use MintyPHP\Service\Access\PermissionService;
class TenantScopeService
@@ -14,7 +13,7 @@ class TenantScopeService
private readonly TenantRepositoryInterface $tenantRepository,
private readonly DepartmentRepositoryInterface $departmentRepository,
private readonly UserTenantRepositoryInterface $userTenantRepository,
private readonly PermissionGateway $permissionGateway
private readonly PermissionService $permissionService
) {
}
@@ -167,6 +166,6 @@ class TenantScopeService
return false;
}
return $this->permissionGateway->userHas($userId, PermissionService::TENANT_SCOPE_GLOBAL);
return $this->permissionService->userHas($userId, PermissionService::TENANT_SCOPE_GLOBAL);
}
}