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

Need set processor for lasted version #36

Open
imzyf opened this issue Jul 1, 2024 · 1 comment
Open

Need set processor for lasted version #36

imzyf opened this issue Jul 1, 2024 · 1 comment

Comments

@imzyf
Copy link

imzyf commented Jul 1, 2024

            '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' => [],
            ],
        ],
    ];
}
@lichunqiang
Copy link
Owner

can you make a PR? I have been developing without PHP for a long time

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