This commit is contained in:
2023-10-17 14:58:25 +08:00
parent bfbdb1e7ce
commit 3bfbdbff9f
2 changed files with 1 additions and 4 deletions
+1 -2
View File
@@ -18,8 +18,7 @@ class ArrayFormat implements IFormat
{ {
$result = json_encode($result); $result = json_encode($result);
return \response()->withContentType(ContentType::JSON) return \response()->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE)));
->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE)));
} }
-2
View File
@@ -4,7 +4,6 @@ declare(strict_types=1);
namespace Kiri\Router; namespace Kiri\Router;
use Closure; use Closure;
use Kiri\Router\Constrict\Stream;
use Kiri\Router\Format\ArrayFormat; use Kiri\Router\Format\ArrayFormat;
use Kiri\Router\Format\IFormat; use Kiri\Router\Format\IFormat;
use Kiri\Router\Format\MixedFormat; use Kiri\Router\Format\MixedFormat;
@@ -15,7 +14,6 @@ use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface; use Psr\Http\Server\RequestHandlerInterface;
use ReflectionException; use ReflectionException;
use ReflectionNamedType; use ReflectionNamedType;
use ReflectionType;
class Handler implements RequestHandlerInterface class Handler implements RequestHandlerInterface
{ {