Explorar el Código

Fixes issues #65, #84 (#124)

* Fixes issue #84 and #65 

* tests fix
Rytis hace 8 años
padre
commit
9bbc18b769
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/Mpociot/ApiDoc/Generators/LaravelGenerator.php

+ 5 - 0
src/Mpociot/ApiDoc/Generators/LaravelGenerator.php

@@ -88,6 +88,11 @@ class LaravelGenerator extends AbstractGenerator
 
         $kernel->terminate($request, $response);
 
+        if (file_exists($file = App::bootstrapPath().'/app.php')) {
+            $app = require $file;
+            $app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
+        }
+
         return $response;
     }
 }