为了账号安全,请及时绑定邮箱和手机立即绑定

CakePHP 4.x Authentication 2.x - 启动时出现致命错误

CakePHP 4.x Authentication 2.x - 启动时出现致命错误

PHP
江户川乱折腾 2021-08-27 09:33:42
我刚刚重新安装了 CakePHP 4.x(4.x-dev准确地说)并安装了身份验证插件 ( 2.x-dev)。我遵循这里的快速入门指南:https : //github.com/cakephp/authentication/blob/2.x-get/docs/Quick-start-and-introduction.md我添加了必要的 use 声明,implements AuthenticationServiceProviderInterface并添加了getAuthenticationService(ServerRequestInterface $request)函数和必要的中间件添加项,但出现致命错误:致命错误:App\Application::getAuthenticationService(Psr\Http\Message\ServerRequestInterface $request) 的声明必须与 Authentication\AuthenticationServiceProviderInterface::getAuthenticationService(Psr\Http\Message\ServerRequestInterface $request) 兼容:Authentication\AuthenticationServiceInterface in /src /Application.php 第 40 行。第 40 行是:class Application extends BaseApplication implements AuthenticationServiceProviderInterface
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 143 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信