Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to scan other directory swagger annotations? #83

Open
hufeng903 opened this issue Feb 21, 2017 · 2 comments
Open

how to scan other directory swagger annotations? #83

hufeng903 opened this issue Feb 21, 2017 · 2 comments

Comments

@hufeng903
Copy link

i add modules directory in my projects.
how to scan other directory swagger annotations?
is config /config/swaggervel.php app-dir?

@hufeng903
Copy link
Author

hufeng903 commented Feb 21, 2017

app-dir is string not array .so i modify vendor\jlapp\swaggervel\src\Jlapp\Swaggervel\routes.php.
i add
if (Config::get('swaggervel.generateAlways')) {
if (is_array(Config::get('swaggervel.app-dir'))) {
foreach (Config::get('swaggervel.app-dir') as $item) {
$appDir[] = base_path() . "/" .$item;
}
} else {
$appDir = base_path() . "/" . Config::get('swaggervel.app-dir');
}

let app-dir support array. this can scan modules directory.
any other way?

@fgreinus
Copy link

You could also give https://github.com/appointer/Swaggervel a try. I merged a pul request, that directly supports multi-directory scanning. And i actively maintain that swaggervel-fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants