Interface UserInterface
Represents the interface that all user classes must implement.
This interface is useful because the authentication layer can deal with the object through its lifecycle, using the object to get the encoded password (for checking against a submitted password), assigning roles and so on.
Regardless of how your user are loaded or where they come from (a database, configuration, web service, etc), you will have a class that implements this interface. Objects that implement this interface are created and loaded by different objects that implement UserProviderInterface
Direct known implementers
Symfony\Component\Security\Core\User\AdvancedUserInterfaceIndirect known implementers
Symfony\Component\Security\Core\User\User
Namespace: Symfony\Component\Security\Core\User
Author: Fabien Potencier <fabien@symfony.com>
See:
See:
Located at UserInterface.php
Author: Fabien Potencier <fabien@symfony.com>
See:
Symfony\Component\Security\Core\User\UserProviderInterface
See:
Symfony\Component\Security\Core\User\AdvancedUserInterface
Located at UserInterface.php
public
Symfony\Component\Security\Core\Role\Role
|
|
public
string
|
|
public
string|null
|
|
public
string
|
|
public
|