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

@@ -8,8 +8,6 @@ use MintyPHP\Service\Tenant\TenantScopeService;
class DirectoryGatewayFactory
{
private ?DirectorySettingsGateway $directorySettingsGateway = null;
private ?DirectoryScopeGateway $directoryScopeGateway = null;
public function __construct(
private readonly SettingServicesFactory $settingServicesFactory,
private readonly TenantScopeService $tenantScopeService
@@ -23,8 +21,8 @@ class DirectoryGatewayFactory
);
}
public function createDirectoryScopeGateway(): DirectoryScopeGateway
public function getTenantScopeService(): TenantScopeService
{
return $this->directoryScopeGateway ??= new DirectoryScopeGateway($this->tenantScopeService);
return $this->tenantScopeService;
}
}