Fr3nch13/CakePHP Utilities

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
throws
RuntimeException

If password hasher class not found or it does not extend

Return values
AbstractPasswordHasher

Password hasher instance


        
On this page

Search results