refactor(arch): enforce gateway compliance and remove service-wrapping gateways
This commit is contained in:
@@ -9,7 +9,7 @@ use MintyPHP\Repository\Tenant\TenantRepositoryInterface;
|
||||
|
||||
class SettingServicesFactory
|
||||
{
|
||||
private ?ThemeConfigService $themeConfigService = null;
|
||||
private ?ThemeConfigGateway $themeConfigService = null;
|
||||
private ?SettingCacheService $settingCacheService = null;
|
||||
private ?SettingsCryptoGatewayInterface $settingsCryptoGateway = null;
|
||||
private ?SettingsMetadataGateway $settingsMetadataGateway = null;
|
||||
@@ -53,7 +53,7 @@ class SettingServicesFactory
|
||||
{
|
||||
return $this->settingsAppGateway ??= new SettingsAppGateway(
|
||||
$this->createSettingsMetadataGateway(),
|
||||
$this->createThemeConfigService(),
|
||||
$this->createThemeConfigGateway(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -105,9 +105,9 @@ class SettingServicesFactory
|
||||
return $this->settingCacheService ??= new SettingCacheService();
|
||||
}
|
||||
|
||||
public function createThemeConfigService(): ThemeConfigService
|
||||
public function createThemeConfigGateway(): ThemeConfigGateway
|
||||
{
|
||||
return $this->themeConfigService ??= new ThemeConfigService();
|
||||
return $this->themeConfigService ??= new ThemeConfigGateway();
|
||||
}
|
||||
|
||||
public function createSettingsCryptoGateway(): SettingsCryptoGatewayInterface
|
||||
|
||||
Reference in New Issue
Block a user