Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanwenbo/reflect
反射权限路由,用于FaShop公司内部约束好的控制器文件,生成权限路由信息
https://github.com/hanwenbo/reflect
Last synced: about 2 months ago
JSON representation
反射权限路由,用于FaShop公司内部约束好的控制器文件,生成权限路由信息
- Host: GitHub
- URL: https://github.com/hanwenbo/reflect
- Owner: hanwenbo
- License: apache-2.0
- Created: 2019-02-20T15:39:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-21T09:03:30.000Z (about 2 years ago)
- Last Synced: 2024-10-26T13:42:31.694Z (2 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reflect-auth-router
反射权限路由,用于FaShop公司内部约束好的控制器文件,生成权限路由信息```php
$test = new \hanwenbo\reflect\Reflect( new Test );// 设置禁止的方法
$test->setDenyFunctionList(['del','info']);// 获得类名字
var_dump( $test->getClassReflect()->getName() );// 获得反射的方法列表
$list = $test->getFunctionListReflect();foreach( $list as $row ){
var_dump( $row->getName() );
var_dump( $row->getTitle() );
var_dump( $row->getParam('method') );}
```
| 方法 | |
| ------------- | ---- |
| getName | |
| getTitle | |
| getParam | |
| getDocComment | |