Symfony\Component\Security\Core\Role\SwitchUserRole
SwitchUserRole is used when the current user temporarily impersonates another one.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class SwitchUserRole
extends Role
{
- // members
- private $source;
- // methods
- public void __construct()
- public TokenInterface getSource()
- // Inherited methods from Role
- public void __construct()
- public void getRole()
Hierarchy
Members
private
- $source
Methods
public
- __construct() — Constructor.
- getSource() — Returns the original Token.
Inherited from Symfony\Component\Security\Core\Role\Role
public
- getRole() — {@inheritdoc}