class EncoderFactory implements EncoderFactoryInterface
A generic encoder factory implementation.
| __construct(array $encoders) | ||
| PasswordEncoderInterface | getEncoder(UserInterface|string $user) Returns the password encoder to use for the given account. |
| array | $encoders |
Returns the password encoder to use for the given account.
| UserInterface|string | $user | A UserInterface instance or a class name |
| PasswordEncoderInterface |
| RuntimeException | when no password encoder could be found for the user |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Core/Encoder/EncoderFactory.html