PasswordHasherFactory
in package
Builds password hashing objects
Table of Contents
Methods
- build() : AbstractPasswordHasher
- Returns password hasher object out of a hasher name or a configuration array
Methods
build()
Returns password hasher object out of a hasher name or a configuration array
public
static build(array<string, mixed>|string $passwordHasher) : AbstractPasswordHasher
Parameters
- $passwordHasher : array<string, mixed>|string
-
Name of the password hasher or an array with at least the key
className
set to the name of the class to use
Tags
Return values
AbstractPasswordHasher —Password hasher instance