File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Core \User ;
13
13
14
+ use Symfony \Component \Security \Core \Exception \UnsupportedUserException ;
15
+
14
16
/**
15
17
* @author Nicolas Grekas <p@tchwork.com>
16
18
*/
@@ -22,6 +24,8 @@ interface PasswordUpgraderInterface
22
24
* This method should persist the new password in the user storage and update the $user object accordingly.
23
25
* Because you don't want your users not being able to log in, this method should be opportunistic:
24
26
* it's fine if it does nothing or if it fails without throwing any exception.
27
+ *
28
+ * @throws UnsupportedUserException if the implementation does not support that user
25
29
*/
26
30
public function upgradePassword (PasswordAuthenticatedUserInterface $ user , string $ newHashedPassword ): void ;
27
31
}
You can’t perform that action at this time.
0 commit comments