douba6365 2017-03-14 01:22 采纳率: 100%
浏览 47
已采纳

PHP - 安装OAuth时出错

I already check out some other posts but none help me.

The error is:

<br />
<b>Fatal error</b>:  Class 'League\OAuth2\Client\Provider\Google' not found in
<b>/dir/libs/vendor/phpmailer/phpmailer/class.phpmaileroauthgoogle.php</b> on line
<b>54</b>
<br />

I also read that I had to install League with composer. This is my composer.json,

 {
     "require": {
         "php": ">=5.5.0",
         "slim/slim": "^3.1",
         "slim/php-view": "^2.0",       
         "phpmailer/phpmailer": "~5.2",
         "league/oauth2-client": "^2.2"
     }
 }
  • 写回答

1条回答 默认 最新

  • du13520157325 2017-03-15 16:39
    关注

    The Google provider is not part of the league/oauth2-client package. You also need to install the league/oauth2-google package.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 【matlab】已知功率谱密度反求时域信号
  • ¥15 mindspore项目_模型适配
  • ¥15 openstack使用cinder后,实例运行时分配的总空间不能大于ceph的总空间
  • ¥15 [pcl::PLYWriter::writeASCII] Error during opening (?鶂?)!
  • ¥15 得到XY两轴的数据如何绘制成圆,输入整形器
  • ¥29 PHP读取PDF文件添加多个数字签名
  • ¥25 联邦学习vgg修改最后一个全连接层报错(默认是1000个输出,我的改为11就报错,改为200就没问题)
  • ¥15 maple画图问题,为什么会是这样
  • ¥15 RC522开发arduino作品刷卡失效
  • ¥15 comsol仿真频域研究以及结果处理