Symfony\Component\Security\Core\Role\SwitchUserRole::__construct
Constructor.
Signature
public function __construct(string
$role,
TokenInterface
$source )
Parameters
$role
— string- The role as a string
$source
— Symfony\Component\Security\Core\Authentication\Token\TokenInterface- The original token