Symfony\Component\Security\Core\Authentication\Token\TokenInterface::getAttribute
Returns an attribute value.
Signature
public function getAttribute(string
$name )
Parameters
$name
— string- The attribute name
Returns
- mixed
- The attribute value
Errors/Exceptions
-
InvalidArgumentException
- When attribute doesn't exist for this token