From 79d2cfca9458b03f2a5941984c178f73e6b7c1e3 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Tue, 28 Apr 2026 16:35:07 +0100 Subject: [PATCH] chore: use public Http::setContext() in graphql resolver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit setContext() is now public on Http (utopia-php/http#251). The graphql resolver no longer needs to reach into the per-request container directly to swap the active match for nested resolution — it can just ask Http to do it. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/Appwrite/GraphQL/Resolvers.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Appwrite/GraphQL/Resolvers.php b/src/Appwrite/GraphQL/Resolvers.php index 4b12ec9524..ff9cba4789 100644 --- a/src/Appwrite/GraphQL/Resolvers.php +++ b/src/Appwrite/GraphQL/Resolvers.php @@ -403,8 +403,7 @@ class Resolvers return; } finally { if ($original !== null) { - $container = self::getResolverContainer($utopia); - $container->set('match', static fn () => $original); + $utopia->setContext('match', static fn () => $original); } $lock->release();