我正在学习Symfony 2,我正在尝试创建我的身份验证用户。我正在跟踪文档,但是如果我实现了AdvancedUserInterface,我的用户就没有经过身份验证,相反,如果我使用UserInterface,一切正常。我的守则是:public function saveAction(Request $request) {
$form*
* @return bool true if the user</
即使令牌存在于标头中,它也总是返回false,以检查用户是否已登录。}
正如您所看到的,它实际上是一个受"api“和"auth.restaurant-admin”中间件保护的变体。Response::HTTP_FORBIDDEN, 'You are not authorised to access this part of the application'