Class PasswordHasherFactory
Builds password hashing objects
Namespace: Authentication\PasswordHasher
Method Summary
-
build() public static
Returns password hasher object out of a hasher name or a configuration array
Method Detail
build() ΒΆ public static
build(array|string $passwordHasher): Authentication\PasswordHasher\PasswordHasherInterface
Returns password hasher object out of a hasher name or a configuration array
Parameters
-
array|string
$passwordHasher Name of the password hasher or an array with at least the key
className
set to the name of the class to use
Returns
Authentication\PasswordHasher\PasswordHasherInterface
Throws
RuntimeException
If password hasher class not found or it does not implement \Authentication\PasswordHasher\PasswordHasherInterface