Gii Extension for Yii 2
生成带swagger注释
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --dev --prefer-dist wsl/wslgii
or add
"wsl/wslgii": "*"
to the require-dev section of your composer.json
file.
Usage
Once the extension is installed, simply modify your application configuration as follows:
return [
'bootstrap' => ['gii'],
'modules' => [
'gii' => [
'class' => 'wsl\gii\Module',
],
// ...
],
// ...
];