我使用dektrium/yii2 2-用户(在一个项目上)和yiisoft/yii2-authclient (在另一个项目上)通过Google帐户登录。一段时间前,一切都很好,但我想在上一次composer更新之后,更改了一些内容,现在我得到了一个错误:"Class yii\authclient\client\GoogleOAuth在尝试打开登录页面时不存在“。有没有人有同样的问题或者知道出了什么问题?谢谢
发布于 2016-10-30 05:01:40
在配置文件中替换
'google' => [
'class' => 'yii\authclient\clients\GoogleOAuth',
..
],替换为
'google‘=> 'class’=>‘yii\authclient\client\Google’,
发布于 2016-08-10 14:42:06
yii2-authclient已在不向后兼容的最新版本中进行了修改。
Read about the upgrade process here。
有两种解决办法:
*替换为2.0.6) -不需要其他更改,但不再需要对该扩展进行更新。发布于 2017-03-28 15:37:33
在配置文件中使用yii\authclient\client\Google,而不是yii\authclient\client\GoogleOAuth。
https://stackoverflow.com/questions/38876295
复制相似问题