diff options
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 |