From 70bdf4512d7fea252b50a17a60274da30fa94b67 Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Fri, 26 Apr 2024 18:45:49 +0000 Subject: [PATCH 1/2] Aliased Psr types in Archetype Signed-off-by: Tom Wright --- CHANGELOG.md | 2 ++ src/Context.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b845cc4..e454cef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +* Aliased Psr types in Archetype + ## v0.2.18 (2024-04-26) * Updated Archetype dependency * Updated dependency list diff --git a/src/Context.php b/src/Context.php index 8380a16..9b41386 100644 --- a/src/Context.php +++ b/src/Context.php @@ -279,9 +279,9 @@ public function extractIpFromRequest( // Register interfaces /** @phpstan-ignore-next-line */ -Archetype::map(Middleware::class, MiddlewareNamespace::class); +Archetype::alias(Middleware::class, MiddlewareNamespace::class); /** @phpstan-ignore-next-line */ -Archetype::map(Response::class, ResponseNamespace::class); +Archetype::alias(Response::class, ResponseNamespace::class); // Register Veneer Veneer::register(Context::class, Harvest::class); From 700995af57355f577881eded2f3a5e79596bd790 Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Fri, 26 Apr 2024 18:46:08 +0000 Subject: [PATCH 2/2] Updated changelog Signed-off-by: Tom Wright --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e454cef..9f87ae5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +## v0.2.19 (2024-04-26) * Aliased Psr types in Archetype ## v0.2.18 (2024-04-26)