FOS\UserBundle\Security\Encoder\EncoderFactory::createEncoder PHP Method

createEncoder() protected method

Creates an encoder for the given algorithm.
protected createEncoder ( string $algorithm ) : PasswordEncoderInterface
$algorithm string
return PasswordEncoderInterface
    protected function createEncoder($algorithm)
    {
        $class = $this->encoderClass;
        return new $class($algorithm, $this->encodeHashAsBase64, $this->iterations);
    }