mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
147af0579d
Follows utopia-php/http#249 migration guide to drop usage of the shims kept for one-minor-release compat. Affected call sites switch to: - Handler / hook context: inject 'route' (Route|null from the per-request DI container) instead of $utopia->getRoute(). - Resource factories (init/resources/request.php): Router::matchRoute() returning ?RouteMatch instead of $utopia->match($request). - Error path in app/http.php: $app->getResource('routeMatch')?->route, guarded with try/catch for the pre-dispatch error case. - GraphQL resolver inner-request pattern (Resolvers.php): capture getResource('routeMatch') as the original, Router::matchRoute() for the inner URL, rebind 'route' / 'routeMatch' on the resolver container in finally instead of setRoute($original). Http::execute() shim is retained — the guide explicitly keeps it for this hand-built-route case. Redundant re-match in shared/api.php storage-cache branch removed; the injected $route is already the current one. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>