SwitchUserRole
class SwitchUserRole extends Role
SwitchUserRole is used when the current user temporarily impersonates another one.
Methods
getSource()
Returns the original Token.
Details
at line line 32
__construct(string $role, TokenInterface $source)
Constructor.
in Role at line line 37
string|null
getRole()
Returns the role.
This method returns a string representation whenever possible.
When the role cannot be represented with sufficient precision by a string, it should return null.
at line line 44
TokenInterface
getSource()
Returns the original Token.