chore: use public Http::setContext() in graphql resolver

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) <noreply@anthropic.com>
This commit is contained in:
loks0n
2026-04-28 16:35:07 +01:00
co-authored by Claude Opus 4.7
parent 9bee79fb76
commit 79d2cfca94
+1 -2
View File
@@ -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();