eee
This commit is contained in:
@@ -18,8 +18,7 @@ class ArrayFormat implements IFormat
|
||||
{
|
||||
$result = json_encode($result);
|
||||
|
||||
return \response()->withContentType(ContentType::JSON)
|
||||
->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE)));
|
||||
return \response()->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
||||
namespace Kiri\Router;
|
||||
|
||||
use Closure;
|
||||
use Kiri\Router\Constrict\Stream;
|
||||
use Kiri\Router\Format\ArrayFormat;
|
||||
use Kiri\Router\Format\IFormat;
|
||||
use Kiri\Router\Format\MixedFormat;
|
||||
@@ -15,7 +14,6 @@ use Psr\Http\Message\ServerRequestInterface;
|
||||
use Psr\Http\Server\RequestHandlerInterface;
|
||||
use ReflectionException;
|
||||
use ReflectionNamedType;
|
||||
use ReflectionType;
|
||||
|
||||
class Handler implements RequestHandlerInterface
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user