【发布时间】:2022-01-05 06:36:37
【问题描述】:
嘿嘿!
我目前正在使用 JWT 进行身份验证。 我使用 Symfony 5.3 我想测试我的登录时出错:
<!-- Cannot autowire argument $user of "App\Controller\AuthController::getTokenUser()": it references interface "Symfony\Component\Security\Core\User\UserInterface" but no such service exists. Did you create a class that implements this interface? (500 Internal Server Error) -->
我已经安装了安全包和我的用户实体:
class User implements UserInterface, PasswordAuthenticatedUserInterface
有人可以帮助我吗?
谢谢
【问题讨论】:
-
避免在提问中使用图片。考虑更新问题并在错误的相关部分复制/粘贴。
标签: symfony