agent foundation

This commit is contained in:
2026-03-06 00:44:52 +01:00
parent 9819cba733
commit 9a08f96c11
199 changed files with 8522 additions and 1880 deletions

View File

@@ -2,41 +2,46 @@
namespace MintyPHP\Service\User;
use MintyPHP\Service\Settings\SettingGateway;
use MintyPHP\Service\Settings\SettingsAppGateway;
use MintyPHP\Service\Settings\SettingsDefaultsGateway;
use MintyPHP\Service\Settings\SettingsUserLifecycleGateway;
class UserSettingsGateway
{
public function __construct(private readonly SettingGateway $settingGateway)
{
public function __construct(
private readonly SettingsDefaultsGateway $settingsDefaultsGateway,
private readonly SettingsAppGateway $settingsAppGateway,
private readonly SettingsUserLifecycleGateway $settingsUserLifecycleGateway
) {
}
public function getDefaultTenantId(): ?int
{
return $this->settingGateway->getDefaultTenantId();
return $this->settingsDefaultsGateway->getDefaultTenantId();
}
public function getDefaultRoleId(): ?int
{
return $this->settingGateway->getDefaultRoleId();
return $this->settingsDefaultsGateway->getDefaultRoleId();
}
public function getDefaultDepartmentId(): ?int
{
return $this->settingGateway->getDefaultDepartmentId();
return $this->settingsDefaultsGateway->getDefaultDepartmentId();
}
public function getAppTheme(): ?string
{
return $this->settingGateway->getAppTheme();
return $this->settingsAppGateway->getAppTheme();
}
public function getUserInactivityDeactivateDays(): int
{
return $this->settingGateway->getUserInactivityDeactivateDays();
return $this->settingsUserLifecycleGateway->getUserInactivityDeactivateDays();
}
public function getUserInactivityDeleteDays(): int
{
return $this->settingGateway->getUserInactivityDeleteDays();
return $this->settingsUserLifecycleGateway->getUserInactivityDeleteDays();
}
}