EncoderFactoryInterface

interface EncoderFactoryInterface

EncoderFactoryInterface to support different encoders for different accounts.

Methods

PasswordEncoderInterface getEncoder(UserInterface|string $user)

Returns the password encoder to use for the given account.

Details

PasswordEncoderInterface getEncoder(UserInterface|string $user)

Returns the password encoder to use for the given account.

Parameters

UserInterface|string $user A UserInterface instance or a class name

Return Value

PasswordEncoderInterface

Exceptions

RuntimeException when no password encoder could be found for the user
doc_Symfony
2016-10-28 06:14:55
Comments
Leave a Comment

Please login to continue.