Symfony\Component\Security\Core\SecurityContext::setToken
Sets the currently authenticated token.
Signature
public function setToken([TokenInterface
$token = null] )
Parameters
$token
— Symfony\Component\Security\Core\Authentication\Token\TokenInterface- A TokenInterface token, or null if no further authentication information should be stored