We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2c83bf + 8835d41 commit 083c08dCopy full SHA for 083c08d
security/passwords.rst
@@ -500,13 +500,14 @@ the user provider::
500
namespace App\Security;
501
502
// ...
503
+ use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
504
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
505
506
class UserProvider implements UserProviderInterface, PasswordUpgraderInterface
507
{
508
509
- public function upgradePassword(UserInterface $user, string $newHashedPassword): void
510
+ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void
511
512
// set the new hashed password on the User object
513
$user->setPassword($newHashedPassword);
0 commit comments