Skip to content

Commit

Permalink
Fixes issues #65, #84 (#124)
Browse files Browse the repository at this point in the history
* Fixes issue #84 and #65 

* tests fix
  • Loading branch information
grinry authored and mpociot committed Nov 12, 2016
1 parent c2388cb commit 9bbc18b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mpociot/ApiDoc/Generators/LaravelGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ public function callRoute($method, $uri, $parameters = [], $cookies = [], $files

$kernel->terminate($request, $response);

if (file_exists($file = App::bootstrapPath().'/app.php')) {
$app = require $file;
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
}

return $response;
}
}

0 comments on commit 9bbc18b

Please sign in to comment.