* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\PasswordHasher\Hasher; use Symfony\Component\PasswordHasher\PasswordHasherInterface; use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; /** * PasswordHasherFactoryInterface to support different password hashers for different user accounts. * * @author Robin Chalas * @author Johannes M. Schmitt */ interface PasswordHasherFactoryInterface { /** * Returns the password hasher to use for the given user. * * @param PasswordHasherAwareInterface|PasswordAuthenticatedUserInterface|string $user * * @throws \RuntimeException When no password hasher could be found for the user */ public function getPasswordHasher($user): PasswordHasherInterface; }