Skip to content

Commit

Permalink
describe namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed Apr 18, 2020
1 parent 511f5f8 commit a1d0306
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion assets/swagger_bake.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand All @@ -20,7 +22,11 @@
'json' => '/webroot/swagger.json',
'webPath' => '/swagger.json',
'hotReload' => false,
'docType' => 'swagger'
'docType' => 'swagger',
'namespaces' => [
'controllers' => ['\App\\'],
'entities' => ['\App\\'],
]
]
];

Expand Down

0 comments on commit a1d0306

Please sign in to comment.