From 77e1e8d6115503d34b5634090ce71d3ef90b1942 Mon Sep 17 00:00:00 2001 From: Tom Castleman Date: Thu, 31 Mar 2016 16:31:15 +0100 Subject: [PATCH] Fixes excluded directories Excluded directories were not being correctly passed to the $options of Swagger\scan() --- src/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.php b/src/Generator.php index b48b4b0..6a31e16 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -18,7 +18,7 @@ public static function generateDocs() } File::makeDirectory($docDir); $excludeDirs = config('l5-swagger.paths.excludes'); - $swagger = \Swagger\scan($appDir, $excludeDirs); + $swagger = \Swagger\scan($appDir, ['exclude' => $excludeDirs]); $filename = $docDir.'/api-docs.json'; $swagger->saveAs($filename);