File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,17 @@ public function testBehat($opts = ['silent|s' => false])
101
101
*/
102
102
public function generateApiDoc ()
103
103
{
104
- foreach ($ this ->getApplicationBasePaths () as $ applicationName => $ basePath ) {
105
- $ jsonPath = $ basePath . '/www/swagger.json ' ;
106
- $ this ->taskExec ('vendor/bin/swagger ' )
107
- ->arg ($ basePath )
108
- ->option ('--output ' )
104
+ foreach ($ this ->getApplicationBasePaths () as $ applicationName => $ basePaths ) {
105
+ $ basePaths = (array )$ basePaths ;
106
+ $ basePath = reset ($ basePaths );
107
+ $ jsonPath = $ basePath . '/www/swagger.json ' ;
108
+ $ task = $ this ->taskExec ('vendor/bin/swagger ' );
109
+
110
+ foreach ($ basePaths as $ path ) {
111
+ $ task ->arg ($ path );
112
+ }
113
+
114
+ $ task ->option ('--output ' )
109
115
->arg ($ jsonPath )
110
116
->run ();
111
117
You can’t perform that action at this time.
0 commit comments