Symfony\Component\Security\Http\Firewall\SwitchUserListener::getOriginalToken
Gets the original Token from a switched one.
Signature
private function getOriginalToken(TokenInterface
$token )
Parameters
$token
— Symfony\Component\Security\Core\Authentication\Token\TokenInterface- A switched TokenInterface instance
Returns
- TokenInterface|false
- The original TokenInterface instance, false if the current TokenInterface is not switched