\think\route\dispatchCallback

Callback Dispatcher

Summary

Methods
Properties
Constants
__construct()
init()
run()
getDispatch()
getParam()
exec()
__sleep()
__wakeup()
__debugInfo()
No public properties found
No constants found
autoResponse()
doRouteAfter()
createBindModel()
autoValidate()
$app
$request
$rule
$dispatch
$param
N/A
No private methods found
No private properties found
N/A

Properties

$app

$app : \think\App

应用对象

Type

App

$request

$request : \think\Request

请求对象

Type

Request

$rule

$rule : \think\route\Rule

路由规则

Type

Rule

$dispatch

$dispatch : mixed

调度信息

Type

mixed

$param

$param : array

路由变量

Type

array

Methods

__construct()

__construct(\think\Request  $request, \think\route\Rule  $rule, mixed  $dispatch, array  $param = []) : mixed

Parameters

\think\Request $request
\think\route\Rule $rule
mixed $dispatch
array $param

Returns

mixed —

init()

init(\think\App  $app) : mixed

Parameters

\think\App $app

Returns

mixed —

run()

run() : mixed

执行路由调度

Returns

mixed —

getDispatch()

getDispatch() : mixed

Returns

mixed —

getParam()

getParam() : array

Returns

array —

exec()

exec() : mixed

Returns

mixed —

__sleep()

__sleep() : mixed

Returns

mixed —

__wakeup()

__wakeup() : mixed

Returns

mixed —

__debugInfo()

__debugInfo() : mixed

Returns

mixed —

autoResponse()

autoResponse(mixed  $data) : \think\Response

Parameters

mixed $data

Returns

\think\Response —

doRouteAfter()

doRouteAfter() : void

检查路由后置操作

createBindModel()

createBindModel(array  $bindModel, array  $matches) : void

路由绑定模型实例

Parameters

array $bindModel

绑定模型

array $matches

路由变量

autoValidate()

autoValidate(array  $option) : void

验证数据

Parameters

array $option

Throws

\think\exception\ValidateException