\Cake\AuthPasswordHasherFactory

Builds password hashing objects

Summary

Methods
Properties
Constants
build()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

build()

build(string|array  $passwordHasher) : \Cake\Auth\AbstractPasswordHasher

Returns password hasher object out of a hasher name or a configuration array

Parameters

string|array $passwordHasher

Name of the password hasher or an array with at least the key className set to the name of the class to use

Throws

\RuntimeException

If password hasher class not found or it does not extend Cake\Auth\AbstractPasswordHasher

Returns

\Cake\Auth\AbstractPasswordHasher

Password hasher instance