class Service extends Controller

系统默认的Service类

Properties

protected array $htmlEngineRenderTplArray from Controller

Methods

customHandlerActionException(Exception $e)

自定义异常处理

void
runAppController(string $method, Request $request = null, Response $response = null)

运行对应的控制器

model()

获取模型方法

locker(string|null $useCache = null)

获取Lock实例

__destruct()

挂载插件钩子

Details

in Controller at line 42
protected customHandlerActionException(Exception $e)

自定义异常处理

Parameters

Exception $e

Exceptions

Exception

in Controller at line 58
final void runAppController(string $method, Request $request = null, Response $response = null)

运行对应的控制器

Parameters

string $method 要执行的控制器方法
Request $request
Response $response

Return Value

void

Exceptions

Exception

in Controller at line 112
Model model()

获取模型方法

Return Value

Model

in Controller at line 125
Redis locker(string|null $useCache = null)

获取Lock实例

Parameters

string|null $useCache 使用的锁的配置

Return Value

Redis | Memcache | File | false

Exceptions

Exception

in Controller at line 134
__destruct()

挂载插件钩子