国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

想使用中間件對請求參數(shù)過濾,但是不知道怎么返回request類

manman10
class FilterRequest implements MiddlewareInterface
{
    public function process(Request $request, callable $next): Response
    {
        $request = Util::filter($request->all());
        return $next($request);
    }

}

錯(cuò)誤
TypeError: Webman\Log\Middleware::process(): Argument #1 ($request) must be of type Webman\Http\Request, array given,

想直接過濾請求 但是不知道怎么把數(shù)據(jù)過濾了 返回request類

1415 1 0
1個(gè)回答

liziyu

文檔上說可以自定義 request 類來實(shí)現(xiàn)。

http://wtbis.cn/doc/webman/request.html

  • manman10 2022-08-11

    感覺沒有中間件方便 改動(dòng)也小

年代過于久遠(yuǎn),無法發(fā)表回答
??