\Framework\MiddlewareMiddlewareInterface

中间件接口(所有中间件必须实现这个接口).

Summary

Methods
Constants
handle()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

handle()

handle(\Symfony\Component\HttpFoundation\Request  $request, callable  $next) : \Symfony\Component\HttpFoundation\Response

中间件执行方法.

Parameters

\Symfony\Component\HttpFoundation\Request $request

请求对象

callable $next

下一个中间件/控制器的回调

Returns

\Symfony\Component\HttpFoundation\Response —

响应对象