$name
$name :
parseRule(\think\Request $request, string $rule, string $route, string $url, array $option = array(), array $matches = array()) : \think\route\Dispatch
解析匹配到的规则路由
\think\Request | $request | 请求对象 |
string | $rule | 路由规则 |
string | $route | 路由地址 |
string | $url | URL地址 |
array | $option | 路由参数 |
array | $matches | 匹配的变量 |
checkCrossDomain(\think\Request $request) : \think\route\Dispatch|void
检查OPTIONS请求
\think\Request | $request |
parseRequestCache(\think\Request $request, string|array $cache) : void
处理路由请求缓存
\think\Request | $request | 请求对象 |
string|array | $cache | 路由缓存 |
autoValidate(array $option, \think\Request $request) : void
验证数据
array | $option | |
\think\Request | $request |
dispatch(\think\Request $request, mixed $route, array $option) : \think\route\Dispatch
发起路由调度
\think\Request | $request | Request对象 |
mixed | $route | 路由地址 |
array | $option | 路由参数 |
checkOption(array $option, \think\Request $request) : boolean
路由检查
array | $option | 路由参数 |
\think\Request | $request | Request对象 |