From accce4537710f6212a332fe5ec78890514b20ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IT=E5=B0=8F=E5=BC=BAxqitw=2Ecn?= <360237521@qq.com> Date: Thu, 7 Jun 2018 13:56:34 +0800 Subject: [PATCH] =?UTF-8?q?README.md=20=E6=96=87=E4=BB=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b47550e..ea39402 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,8 @@ $config = [ 'class' => ['Api', 'Api2'], // 要生成文档的类 'filter_method' => ['__construct'], // 要过滤的方法名称 ]; -$api = new \itxq\apidoc\ApiDoc($config); -$doc = $api->getApiDoc(); -echo '
'; -var_dump($doc); -echo ''; +$api = new \itxq\apidoc\BootstrapApiDoc($config); +$doc = $api->getHtml(); +exit($doc); ``` ### 具体效果可运行test目录下的`index.php`查看 \ No newline at end of file