Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获得经过身份验证的数据库用户凭据?
在我的后端,我有一个部分,其中包含当前用户、姓名、电子邮件的凭据……我如何获得此凭据?它存储在会话中?如何获取会话用户 ID?
它在安全文档http://symfony.com/doc/current/book/security.html#retrieving-the-user-object