Constructor.
public __construct ( string | object $user, string $credentials, string $providerKey, array $roles = [] ) | ||
$user | string | object | 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 |