From a30d7384c087fea711c3832345674a7c746c21fa Mon Sep 17 00:00:00 2001 From: Latrell Chan Date: Thu, 10 Jul 2014 15:52:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=88=86=E9=9A=94=E7=AC=A6?= =?UTF-8?q?=E7=9A=84=E5=B0=8F=E8=B0=83=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Latrell/Swagger/Swagger.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Latrell/Swagger/Swagger.php b/src/Latrell/Swagger/Swagger.php index fc8ffcd..49cb0ff 100644 --- a/src/Latrell/Swagger/Swagger.php +++ b/src/Latrell/Swagger/Swagger.php @@ -15,7 +15,7 @@ public function fire() { $projectPaths = $this->realpaths($this->paths); $excludePaths = $this->realpaths($this->exclude); - $outputPath = head($this->realpaths(base_path($this->output))); + $outputPath = head($this->realpaths(base_path($this->output))) . DIRECTORY_SEPARATOR; $swagger = new \Swagger\Swagger($projectPaths, $excludePaths); @@ -94,7 +94,6 @@ protected function realpaths($paths) throw new SwaggerException("Path \"{$path}\" not found"); } } - $paths[$i] .= DIRECTORY_SEPARATOR; } return $paths; }