refactor(arch): enforce gateway compliance and remove service-wrapping gateways
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user