diff options
author | Johannes Schmitt <schmittjoh@gmail.com> | 2010-12-21 16:10:53 +0100 |
---|---|---|
committer | Johannes Schmitt <schmittjoh@gmail.com> | 2010-12-21 16:23:46 +0100 |
commit | 59fad126fb69ad04228cb1f98a5b1f78ad04dd25 (patch) | |
tree | e4511c680da314fe05f0b9c7275617cc9e328fb6 /Encoder/EncoderFactoryInterface.php | |
parent | 5853e1f130f888bfe2e5e5830ed930218cfe693b (diff) | |
download | symfony-security-59fad126fb69ad04228cb1f98a5b1f78ad04dd25.zip symfony-security-59fad126fb69ad04228cb1f98a5b1f78ad04dd25.tar.gz symfony-security-59fad126fb69ad04228cb1f98a5b1f78ad04dd25.tar.bz2 |
added generic encoder factory
Diffstat (limited to 'Encoder/EncoderFactoryInterface.php')
-rw-r--r-- | Encoder/EncoderFactoryInterface.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Encoder/EncoderFactoryInterface.php b/Encoder/EncoderFactoryInterface.php new file mode 100644 index 0000000..0c62b35 --- /dev/null +++ b/Encoder/EncoderFactoryInterface.php @@ -0,0 +1,30 @@ +<?php + +namespace Symfony\Component\Security\Encoder; + +use Symfony\Component\Security\User\AccountInterface; + +/* + * This file is part of the Symfony package. + * + * (c) Fabien Potencier <fabien.potencier@symfony-project.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * EncoderFactoryInterface to support different encoders for different accounts. + * + * @author Johannes M. Schmitt <schmittjoh@gmail.com> + */ +interface EncoderFactoryInterface +{ + /** + * Returns the password encoder to use for the given account + * + * @param AccountInterface $account + * @return PasswordEncoderInterface never null + */ + function getEncoder(AccountInterface $account); +}
\ No newline at end of file |