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

@@ -4,7 +4,7 @@ namespace MintyPHP\Tests\Support;
use MintyPHP\App\AppContainer;
use MintyPHP\Service\Settings\SettingCacheService;
use MintyPHP\Service\Settings\ThemeConfigService;
use MintyPHP\Service\Settings\ThemeConfigGateway;
use PHPUnit\Framework\TestCase;
class ThemeResolutionTest extends TestCase
@@ -17,9 +17,9 @@ class ThemeResolutionTest extends TestCase
$this->container = new AppContainer();
$themeConfig = $this->createMock(ThemeConfigService::class);
$themeConfig = $this->createMock(ThemeConfigGateway::class);
$themeConfig->method('all')->willReturn(['light' => 'Light', 'dark' => 'Dark']);
$this->container->set(ThemeConfigService::class, fn () => $themeConfig);
$this->container->set(ThemeConfigGateway::class, fn () => $themeConfig);
$this->setAppSettings([]);