diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2012-06-18 08:12:50 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2012-06-18 08:12:50 +0200 |
commit | e13a63c0cbbd938589e2ecdf6af0402651cbb673 (patch) | |
tree | 84af98c95faf22555a8591efeb28f42fe5eb53f4 /Core/Encoder/EncoderFactoryInterface.php | |
parent | 81db3fb8af37dd884580433a647df23d6de5347e (diff) | |
download | symfony-security-e13a63c0cbbd938589e2ecdf6af0402651cbb673.zip symfony-security-e13a63c0cbbd938589e2ecdf6af0402651cbb673.tar.gz symfony-security-e13a63c0cbbd938589e2ecdf6af0402651cbb673.tar.bz2 |
[Security] allowed class names to be passed as an argument to EncoderFactoryInterface::getEncoder()
Diffstat (limited to 'Core/Encoder/EncoderFactoryInterface.php')
-rw-r--r-- | Core/Encoder/EncoderFactoryInterface.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Core/Encoder/EncoderFactoryInterface.php b/Core/Encoder/EncoderFactoryInterface.php index 3ae07e6..125e57b 100644 --- a/Core/Encoder/EncoderFactoryInterface.php +++ b/Core/Encoder/EncoderFactoryInterface.php @@ -23,9 +23,11 @@ interface EncoderFactoryInterface /** * Returns the password encoder to use for the given account. * - * @param UserInterface $user + * @param UserInterface|string $user A UserInterface instance of a class name * - * @return PasswordEncoderInterface never null + * @return PasswordEncoderInterface + * + * @throws \RuntimeException when no password encoder could be found for the user */ - function getEncoder(UserInterface $user); + function getEncoder($user); } |