class SwitchUserRole extends Role
SwitchUserRole is used when the current user temporarily impersonates another one.
Methods
|
__construct(string $role, TokenInterface $source)
Constructor. |
||
| string|null |
getRole()
Returns the role. |
from Role |
| TokenInterface |
getSource()
Returns the original Token. |
Details
at line 32
public
__construct(string $role, TokenInterface $source)
Constructor.
in Role at line 37
public 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 44
public TokenInterface
getSource()
Returns the original Token.