Constructor.
public __construct ( string | object $user, mixed $credentials, string $providerKey, array $roles = [] ) | ||
$user | string | object | The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string |
$credentials | mixed | The user credentials |
$providerKey | string | The provider key |
$roles | array |