找不到类别"Google \ Auth \ OAuth2" [英] Class 'Google\Auth\OAuth2' not found
本文介绍了找不到类别"Google \ Auth \ OAuth2"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图将google plus登录名添加到我的网站,但遇到此错误,这似乎很奇怪,因为我已经添加了文件.我已经启用了供应商/自动加载功能(我正在使用codeigniter)
I was trying to add google plus login to my web but I encountered this error which seems really weird because I have the file already added. I already enable vendor/autoload (Im using codeigniter)
任何人以前都有过这种错误吗?您是如何解决的?
Anyone had this kind of error before? How did you fix this?
A PHP Error was encountered
Severity: Error
Message: Class 'Google\Auth\OAuth2' not found
Filename: Google/Client.php
Line Number: 929
Backtrace:
推荐答案
我假设您正在使用此包.您是否通过composer
安装了它?它具有多个依赖关系,并且根据错误看来,您可能会缺少其中一些.
I assume you are using this package. Did you install it via composer
? It has several dependencies and it looks like based on the error, that you may be missing some of them.
这篇关于找不到类别"Google \ Auth \ OAuth2"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文