gpt4 book ai didi

php - 交响乐团 3 : Undefined class constant 'AUTHENTICATION_ERROR'

转载 作者:行者123 更新时间:2023-12-02 03:55:05 26 4
gpt4 key购买 nike

我正在使用 symfony 3 中的 Gard 在身份验证系统中工作,

当我使用时

$request->getSession()->set(Security::AUTHENTICATION_ERROR, $exception); 

里面

public onAuthenticationFailure()

我收到此错误未定义的类常量“AUTHENTICATION_ERROR”

如何解决这个问题?

最佳答案

也许您忘记使用Security类或使用了不正确的类。

尝试一下:

use Symfony\Component\Security\Core\Security;

关于php - 交响乐团 3 : Undefined class constant 'AUTHENTICATION_ERROR' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44205689/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com