src/Sulu/Bundle/SecurityBundle/Controller/ResettingController.php
private function encodePassword(UserInterface $user, $password, $salt)
    {
        $encoder = $this->get('sulu_security.encoder_factory')->getEncoder($user);

        return $encoder->encodePassword($password, $salt);
    }
private function encodePassword(UserInterface $user, $password, $salt)
    {
        $encoder = $this->get('sulu_security.encoder_factory')->getEncoder($user);

        return $encoder->encodePassword($password, $salt);
    }
private function encodePassword ( UserInterface $ user , $ password , $ salt ) { $ encoder = $ this -> get ( 'sulu_security.encoder_factory' ) -> getEncoder ( $ user ) ; return $ encoder -> encodePassword ( $ password , $ salt ) ; }
Returns an encoded password gor a given one.

@param UserInterface $user
@param string $password
@param string $salt

@return mixed
Returns an encoded password gor a given one .