westhack / think-swagger

The ThinkPHP5 swagger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

通过composer安装之后报错 Non-static method think\Route::any() should not be called statically

phpitgo opened this issue · comments

通过composer安装之后,执行命令 php tink 报错 Non-static method think\Route::any() should not be called statically。
tp版本是:5.1.39 LTS。

通过composer安装之后,执行命令 php tink 报错 Non-static method think\Route::any() should not be called statically。
tp版本是:5.1.39 LTS。

之前用的是tp5.0,5.1路由绑定有点问题
执行 composer require westhack/think-swagger:1.1.0

通过composer安装之后,执行命令 php tink 报错 Non-static method think\Route::any() should not be called statically。
tp版本是:5.1.39 LTS。

之前用的是tp5.0,5.1路由绑定有点问题
执行 composer require westhack/think-swagger:1.1.0

5.1 现在取消常量了,配置文件里可能要改用evn读取app_path.
composer下载失败,我换台电脑看下。

通过composer安装之后,执行命令 php tink 报错 Non-static method think\Route::any() should not be called statically。
tp版本是:5.1.39 LTS。

之前用的是tp5.0,5.1路由绑定有点问题
执行 composer require westhack/think-swagger:1.1.0

5.1 现在取消常量了,配置文件里可能要改用evn读取app_path.
composer下载失败,我换台电脑看下。

配置文件不是固定的,可以修改

'scan_dir' => [ // 扫描目录
    Env::get('名称')
 ],