mediatekformation

EncoderFactory
in package
implements EncoderFactoryInterface

A generic encoder factory implementation.

Tags
author

Johannes M. Schmitt schmittjoh@gmail.com

Interfaces, Classes, Traits and Enums

EncoderFactoryInterface
EncoderFactoryInterface to support different encoders for different accounts.

Table of Contents

$encoders  : mixed
__construct()  : mixed
getEncoder()  : PasswordEncoderInterface
Returns the password encoder to use for the given account.
createEncoder()  : PasswordEncoderInterface
Creates the actual encoder instance.
getEncoderConfigFromAlgorithm()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $encoders) : mixed
Parameters
$encoders : array<string|int, mixed>
Return values
mixed

createEncoder()

Creates the actual encoder instance.

private createEncoder(array<string|int, mixed> $config[, bool $isExtra = false ]) : PasswordEncoderInterface
Parameters
$config : array<string|int, mixed>
$isExtra : bool = false
Tags
throws
InvalidArgumentException
Return values
PasswordEncoderInterface

getEncoderConfigFromAlgorithm()

private getEncoderConfigFromAlgorithm(array<string|int, mixed> $config) : array<string|int, mixed>
Parameters
$config : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results