|
Zhamao Framework
3.0.0-beta1
A high-performance chatbot + web framework
|
Public 成员函数 | |
| __construct (bool $with_internal_parsers=true) | |
| addSpecialParser (string $class_name, callable $callback) | |
| parse (array $path) | |
| parseAll () | |
| generateAnnotationList () | |
| parseSpecial ($annotation, $same_method_annotations=null) | |
| addRegisterPath (string $path, string $indoor_name) | |
| getUsedTime () | |
| getAnnotationMap () | |
注解解析器
| __construct | ( | bool | $with_internal_parsers = true | ) |
| addRegisterPath | ( | string | $path, |
| string | $indoor_name | ||
| ) |
添加解析的路径
| string | $path | 注册解析注解的路径 |
| string | $indoor_name | 起始命名空间的名称 |
| addSpecialParser | ( | string | $class_name, |
| callable | $callback | ||
| ) |
设置自定义的注解解析方法
| string | $class_name | 注解类名 |
| callable | $callback | 回调函数 |
| generateAnnotationList | ( | ) |
生成排序后的注解列表
| getAnnotationMap | ( | ) |
获取注解的注册map
| getUsedTime | ( | ) |
获取解析器调用的时间(秒)
| parse | ( | array | $path | ) |
| parseAll | ( | ) |
注册各个模块类的注解和模块level的排序
| parseSpecial | ( | $annotation, | |
$same_method_annotations = null |
|||
| ) |