Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken::__construct
Constructor.
Signature
public function __construct(string
$user,
string
$credentials,
string
$providerKey,
array
$roles )
Parameters
$user
—
string
- The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method.
$credentials
—
string
- This usually is the password of the user
$providerKey
—
string
- The provider key
$roles
—
array
- An array of roles
Errors/Exceptions
-
InvalidArgumentException