forked from fa/breadcrumb-the-shire
Replace raw line-height values with --leading-none/--leading-loose design tokens in 3 CSS files. Fix 7 PHP style issues: import ordering, unused imports, brace placement, multi-line argument formatting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
36 lines
951 B
PHP
36 lines
951 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Service\Directory;
|
|
|
|
use MintyPHP\Service\Settings\SettingsAppGateway;
|
|
use MintyPHP\Service\Settings\SettingsDefaultsGateway;
|
|
|
|
class DirectorySettingsGateway
|
|
{
|
|
public function __construct(
|
|
private readonly SettingsDefaultsGateway $settingsDefaultsGateway,
|
|
private readonly SettingsAppGateway $settingsAppGateway
|
|
) {
|
|
}
|
|
|
|
public function setDefaultTenantId(?int $tenantId): void
|
|
{
|
|
$this->settingsDefaultsGateway->setDefaultTenantId($tenantId);
|
|
}
|
|
|
|
public function setDefaultDepartmentId(?int $departmentId): void
|
|
{
|
|
$this->settingsDefaultsGateway->setDefaultDepartmentId($departmentId);
|
|
}
|
|
|
|
public function setDefaultRoleId(?int $roleId): void
|
|
{
|
|
$this->settingsDefaultsGateway->setDefaultRoleId($roleId);
|
|
}
|
|
|
|
public function isAllowedTheme(string $theme): bool
|
|
{
|
|
return $this->settingsAppGateway->isAllowedTheme($theme);
|
|
}
|
|
}
|