\think\route\dispatchController

Controller Dispatcher

Summary

Methods
Properties
Constants
init()
exec()
controller()
No public properties found
No constants found
registerControllerMiddleware()
$controller
$actionName
N/A
No private methods found
No private properties found
N/A

Properties

$controller

$controller : string

控制器名

Type

string

$actionName

$actionName : string

操作名

Type

string

Methods

init()

init(\think\App  $app) 

Parameters

\think\App $app

exec()

exec() 

controller()

controller(string  $name) : object

实例化访问控制器

Parameters

string $name

资源地址

Throws

\think\exception\ClassNotFoundException

Returns

object

registerControllerMiddleware()

registerControllerMiddleware(object  $controller) : void

使用反射机制注册控制器中间件

Parameters

object $controller

控制器实例