Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface::getEncoder
Returns the password encoder to use for the given account.
Signature
public function getEncoder(UserInterface|string
$user )
Parameters
$user
— object- A UserInterface instance or a class name
Returns
- PasswordEncoderInterface
Errors/Exceptions
-
RuntimeException
- when no password encoder could be found for the user