src/Sulu/Bundle/SecurityBundle/Command/CreateUserCommand.php
private function encodePassword($user, $password, $salt)
    {
        /** @var PasswordEncoderInterface $encoder */
        $encoder = $this->encoderFactory->getEncoder($user);

        return $encoder->encodePassword($password, $salt);
    }
private function encodePassword($user, $password, $salt)
    {
        /** @var PasswordEncoderInterface $encoder */
        $encoder = $this->encoderFactory->getEncoder($user);

        return $encoder->encodePassword($password, $salt);
    }
private function encodePassword ( $ user , $ password , $ salt ) { /** @var PasswordEncoderInterface $encoder */ $ encoder = $ this -> encoderFactory -> getEncoder ( $ user ) ; return $ encoder -> encodePassword ( $ password , $ salt ) ; }
Encodes the given password, for the given password, with he given salt and returns the result.

@param $user
@param $password
@param $salt

@return mixed
Encodes the given password for the given password with he given salt and returns the result .