Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
How would you think adding a new getUser() method to the SecurityContext class?
getUser()
SecurityContext
I always find it boring to type $securityContext->getToken()->getUser() when getting the user. Having a shortcut method would be nicer.
$securityContext->getToken()->getUser()
Also it would simplify unit testing when mocking the SecurityContext object.
The text was updated successfully, but these errors were encountered:
This was discussed a while ago and rejected, see #2816
Sorry, something went wrong.
No branches or pull requests
Hello,
How would you think adding a new
getUser()
method to theSecurityContext
class?I always find it boring to type
$securityContext->getToken()->getUser()
when getting the user. Having a shortcut method would be nicer.Also it would simplify unit testing when mocking the
SecurityContext
object.The text was updated successfully, but these errors were encountered: