Open imzyf opened 5 months ago
'scanOptions' => [ 'processor' => [], ],
public function actions() { return [ //The document preview addesss:http://api.yourhost.com/site/doc 'doc' => [ 'class' => 'light\swagger\SwaggerAction', 'restUrl' => \yii\helpers\Url::to(['/site/api'], true), ], //The resultUrl action. 'api' => [ 'class' => 'light\swagger\SwaggerApiAction', //The scan directories, you should use real path there. 'scanDir' => [ Yii::getAlias('@api/modules/v1/swagger'), Yii::getAlias('@api/modules/v1/controllers'), Yii::getAlias('@api/modules/v1/models'), Yii::getAlias('@api/models'), ], 'scanOptions' => [ 'processor' => [], ], ], ]; }
can you make a PR? I have been developing without PHP for a long time