protected function getKeyEncoder($lockData)
    {
        if (isset($lockData['encoder']) && is_string($lockData['encoder'])) {
            $name = $lockData['encoder'];
        } else {
            $name = $this->config["encoder"];
        }

        try {
            $instance = $this->picoAuth->getContainer()->get($name);
        } catch (\Exception $e) {
            throw new \RuntimeException("Specified PageLock encoder not resolvable.");
        }

        return $instance;
    }
protected function getKeyEncoder($lockData)
    {
        if (isset($lockData['encoder']) && is_string($lockData['encoder'])) {
            $name = $lockData['encoder'];
        } else {
            $name = $this->config["encoder"];
        }

        try {
            $instance = $this->picoAuth->getContainer()->get($name);
        } catch (\Exception $e) {
            throw new \RuntimeException("Specified PageLock encoder not resolvable.");
        }

        return $instance;
    }
Returns encoder instance for the specified lock

@param array $lockData Lock data array
@return \PicoAuth\Security\Password\Encoder\PasswordEncoderInterface
@throws \RuntimeException If the encoder is not resolvable