From f1c375cb3e35b649095c6a4d3c13258146d4bb4e Mon Sep 17 00:00:00 2001 From: Abdouni Abdelkarim Date: Tue, 19 Oct 2021 20:09:25 +0200 Subject: [PATCH] Update security.rst Hello, I updated the docs to use the `hashPassword` method from the `Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface` class. --- security.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security.rst b/security.rst index e1e1b106656..8d55515b692 100644 --- a/security.rst +++ b/security.rst @@ -473,7 +473,7 @@ the database:: $plaintextPassword = ...; // hash the password (based on the security.yaml config for the $user class) - $hashedPassword = $passwordHasher->hash( + $hashedPassword = $passwordHasher->hashPassword( $user, $plaintextPassword );