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.
1 parent 86dd45f commit 8bbc854Copy full SHA for 8bbc854
security/passwords.rst
@@ -464,13 +464,14 @@ storing the newly created password hash::
464
namespace App\Repository;
465
466
// ...
467
+ use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
468
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
469
470
class UserRepository extends EntityRepository implements PasswordUpgraderInterface
471
{
472
473
- public function upgradePassword(UserInterface $user, string $newHashedPassword): void
474
+ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void
475
476
// set the new hashed password on the User object
477
$user->setPassword($newHashedPassword);
0 commit comments