Closed wvfeng closed 2 years ago
namespace Swoft\Http\Server\Middleware; ... /** * Class ValidatorMiddleware * * @Bean() * * @since 2.0 */ class ValidatorMiddleware implements MiddlewareInterface { ... public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { ... $request = $request->withParsedBody($parsedBody)->withParsedQuery($query)->withParsedPath($path); return $handler->handle($request); } }
Fixes: swoft-cloud/swoft# Reviewers: @
What does this PR do?
Does this fix any issues or need any specific reviewers?
Fixes: swoft-cloud/swoft# Reviewers: @
Motivation
More
Additional Notes