|
Zhamao Framework 3.2.4
A high-performance chatbot + web framework
|
Public 成员函数 | |
| registerBefore (string $name, callable $callback) | |
| registerAfter (string $name, callable $callback) | |
| registerException (string $name, string $exception_class, callable $callback) | |
| bindMiddleware (callable $callback, string $name, array $args=[]) | |
| getPipeClosure (callable $callback, $stack_id, ?AnnotationBase $annotation=null) | |
| process (callable $callback,... $args) | |
| processWithAnnotation (AnnotationBase $v, callable $callback,... $args) | |
| getCurrentCallable () | |
| getStackId (callable $callback) | |
Protected 属性 | |
| array | $middlewares = [] |
| array | $reg_map = [] |
| array | $stack = [] |
| array | $callable_stack = [] |
| bindMiddleware | ( | callable | $callback, |
| string | $name, | ||
| array | $args = [] |
||
| ) |
| InvalidArgumentException |
| getCurrentCallable | ( | ) |
获取正在运行的回调调用对象,可能是Closure、array、string
| getPipeClosure | ( | callable | $callback, |
| $stack_id, | |||
| ?AnnotationBase | $annotation = null |
||
| ) |
| getStackId | ( | callable | $callback | ) |
| callable | $callback | 可执行的方法 |
| InvalidArgumentException |
| process | ( | callable | $callback, |
| $args | |||
| ) |
| InvalidArgumentException | |
Throwable
| processWithAnnotation | ( | AnnotationBase | $v, |
| callable | $callback, | ||
| $args | |||
| ) |
| registerAfter | ( | string | $name, |
| callable | $callback | ||
| ) |
| registerBefore | ( | string | $name, |
| callable | $callback | ||
| ) |
| registerException | ( | string | $name, |
| string | $exception_class, | ||
| callable | $callback | ||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |