Symfony\Component\Security\Core\User\UserInterface::eraseCredentials
Removes sensitive data from the user.
This is important if, at any given point, sensitive information like the plain-text password is stored on this object.
Signature
public function eraseCredentials()
Returns
- void