Symfony\Component\Security\Core\SecurityContext::getToken
Gets the currently authenticated token.
Signature
public function getToken()
Returns
- TokenInterface|null
- A TokenInterface instance or null if no authentication information is available