mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
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:
co-authored by
Claude Opus 4.7
parent
9bee79fb76
commit
79d2cfca94
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user