Symfony\Component\Security\Core\Authentication\Token\AbstractToken::setUser
Sets the user in the token.
The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string.
Signature
public function setUser(mixed
$user )
Parameters
$user
— mixed- The user