EncoderFactoryInterface
интерфейс EncoderFactoryInterface
EncoderFactoryInterface для поддержки различных кодировщиков для различных учетных записей.
Методы
| PasswordEncoderInterface | getEncoder(UserInterface|string $user) Возвращает кодировщик паролей для использования с заданной учетной записью. |
Подробности
PasswordEncoderInterface getEncoder(UserInterface|string $user)
Возвращает кодировщик паролей для использования с заданной учетной записью.
Параметры
| UserInterface|string | $user | Экземпляр UserInterface или имя класса |
Возвращаемое значение
| PasswordEncoderInterface |
Исключения
| RuntimeException | если кодировщик паролей не найден для пользователя |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Core/Encoder/EncoderFactoryInterface.html