我正在尝试使用我第一次安装该项目的项目https://github.com/sonata-project/GoogleAuthenticator:composer require sonata- project /google-authenticator。在此之后,当我想要查看操作时,我收到一个错误
PHP致命错误:在第19行的/home/#/vendor/sonata-project/google-authenticator/src/GoogleAuthenticator.php中找不到接口'Sonata\GoogleAuthenticator\GoogleAuthenticatorInterface‘
我是不是忘了什么?
任何帮助都将不胜感激!
发布于 2021-07-21 15:28:25
我猜你已经解决了这个问题,或者以某种方式绕过了它。但对我来说答案正在改变
include_once __DIR__.'/src/FixedBitNotation.php';
include_once __DIR__.'/src/GoogleAuthenticator.php';
include_once __DIR__.'/src/GoogleQrUrl.php';include_once __DIR__.'/src/FixedBitNotation.php';
include_once __DIR__.'/src/GoogleAuthenticatorInterface.php';
include_once __DIR__.'/src/GoogleAuthenticator.php';
include_once __DIR__.'/src/GoogleQrUrl.php';也就是说,添加: include_once __DIR__.'/src/GoogleAuthenticatorInterface.php';
发布于 2021-08-23 06:16:30
将以下行添加到位于src文件夹中的GoogleAuthenticator.php文件中
include_once 'GoogleAuthenticatorInterface.php';https://stackoverflow.com/questions/65798537
复制相似问题