Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit083c08d

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: [Security] Fix type in `upgradePassword`
2 parentsa2c83bf +8835d41 commit083c08d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎security/passwords.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,14 @@ the user provider::
500500
namespace App\Security;
501501

502502
// ...
503+
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
503504
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
504505

505506
class UserProvider implements UserProviderInterface, PasswordUpgraderInterface
506507
{
507508
// ...
508509

509-
public function upgradePassword(UserInterface $user, string $newHashedPassword): void
510+
public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void
510511
{
511512
// set the new hashed password on the User object
512513
$user->setPassword($newHashedPassword);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp