README.md 文件更新
This commit is contained in:
parent
e8d54fdabb
commit
accce45377
|
@ -40,10 +40,8 @@ $config = [
|
||||||
'class' => ['Api', 'Api2'], // 要生成文档的类
|
'class' => ['Api', 'Api2'], // 要生成文档的类
|
||||||
'filter_method' => ['__construct'], // 要过滤的方法名称
|
'filter_method' => ['__construct'], // 要过滤的方法名称
|
||||||
];
|
];
|
||||||
$api = new \itxq\apidoc\ApiDoc($config);
|
$api = new \itxq\apidoc\BootstrapApiDoc($config);
|
||||||
$doc = $api->getApiDoc();
|
$doc = $api->getHtml();
|
||||||
echo '<pre>';
|
exit($doc);
|
||||||
var_dump($doc);
|
|
||||||
echo '</pre>';
|
|
||||||
```
|
```
|
||||||
### 具体效果可运行test目录下的`index.php`查看
|
### 具体效果可运行test目录下的`index.php`查看
|
Loading…
Reference in New Issue
Block a user