EncoderFactoryInterface

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Security/Core/Encoder/EncoderFactoryInterface.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部