From e588a52e88e86d7ab2e157d661f54da83099ba7c Mon Sep 17 00:00:00 2001 From: "J. King" Date: Thu, 4 Aug 2022 22:15:43 -0400 Subject: [PATCH] Replace ServerRequestFactory --- lib/REST.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/REST.php b/lib/REST.php index 56dbf11c..ded5ef7a 100644 --- a/lib/REST.php +++ b/lib/REST.php @@ -11,7 +11,7 @@ use JKingWeb\Arsse\Misc\HTTP; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ResponseInterface; -use Laminas\Diactoros\ServerRequestFactory; +use GuzzleHttp\Psr7\ServerRequest; class REST { public const API_LIST = [ @@ -84,7 +84,7 @@ class REST { // ensure the require extensions are loaded Arsse::checkExtensions(...Arsse::REQUIRED_EXTENSIONS); // create a request object if not provided - $req = $req ?? ServerRequestFactory::fromGlobals(); + $req = $req ?? ServerRequest::fromGlobals(); // find the API to handle [, $target, $class] = $this->apiMatch($req->getRequestTarget(), $this->apis); // authenticate the request pre-emptively