| 1 | <?php |
||
| 14 | class UserProvider implements UserProviderInterface, PasswordUpgraderInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param string $username |
||
| 18 | * |
||
| 19 | * @return User|UserInterface |
||
| 20 | */ |
||
| 21 | public function loadUserByUsername(string $username) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Refreshes the user after being reloaded from the session. |
||
| 31 | * |
||
| 32 | * @param UserInterface $user |
||
| 33 | * |
||
| 34 | * @return UserInterface |
||
| 35 | */ |
||
| 36 | public function refreshUser(UserInterface $user) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $class |
||
| 51 | * @return bool |
||
| 52 | */ |
||
| 53 | public function supportsClass(string $class) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param UserInterface $user |
||
| 60 | * @param string $newEncodedPassword |
||
| 61 | */ |
||
| 62 | public function upgradePassword(UserInterface $user, string $newEncodedPassword): void |
||
| 66 | } |
||
| 67 |