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