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

@@ -43,7 +43,7 @@ class UserServicesFactory
$this->createUserAssignmentService(),
$this->createUserPasswordService(),
$this->createUserSettingsGateway(),
$this->createUserScopeGateway(),
$this->userGatewayFactory->getTenantScopeService(),
$this->createUserDirectoryGateway(),
$this->auditServicesFactory->createSystemAuditService(),
$this->databaseSessionRepository
@@ -58,7 +58,7 @@ class UserServicesFactory
$this->createUserRoleRepository(),
$this->createUserDepartmentRepository(),
$this->createUserDirectoryGateway(),
$this->createUserPermissionGateway(),
$this->userGatewayFactory->createPermissionService(),
$this->databaseSessionRepository
);
}
@@ -69,7 +69,7 @@ class UserServicesFactory
$this->createUserReadRepository(),
$this->createUserWriteRepository(),
$this->createUserTenantRepository(),
$this->createUserScopeGateway(),
$this->userGatewayFactory->getTenantScopeService(),
$this->createUserDirectoryGateway()
);
}
@@ -139,21 +139,11 @@ class UserServicesFactory
return $this->userGatewayFactory->createUserSettingsGateway();
}
public function createUserScopeGateway(): UserScopeGateway
{
return $this->userGatewayFactory->createUserScopeGateway();
}
public function createUserDirectoryGateway(): UserDirectoryGateway
{
return $this->userGatewayFactory->createUserDirectoryGateway();
}
public function createUserPermissionGateway(): UserPermissionGateway
{
return $this->userGatewayFactory->createUserPermissionGateway();
}
public function createUserLifecycleService(): UserLifecycleService
{
return $this->userLifecycleService ??= new UserLifecycleService(