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 );