From a1d03068049faf673c6926c738fd0b9fd1743b38 Mon Sep 17 00:00:00 2001 From: chris cnizzardini Date: Fri, 17 Apr 2020 20:47:27 -0400 Subject: [PATCH] describe namespaces --- assets/swagger_bake.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/swagger_bake.php b/assets/swagger_bake.php index 4a4cacf4..f19564b6 100644 --- a/assets/swagger_bake.php +++ b/assets/swagger_bake.php @@ -12,6 +12,8 @@ * built-in Swagger UI. * * @var string $docType: Options are swagger and redoc, defaults: swagger + * + * @var array $namespaces: Can be used if your controllers or entities exist in non-standard namespace such as a plugin */ return [ 'SwaggerBake' => [ @@ -20,7 +22,11 @@ 'json' => '/webroot/swagger.json', 'webPath' => '/swagger.json', 'hotReload' => false, - 'docType' => 'swagger' + 'docType' => 'swagger', + 'namespaces' => [ + 'controllers' => ['\App\\'], + 'entities' => ['\App\\'], + ] ] ];