src/Tomahawk/Authentication/Encoder/BCryptPasswordEncoder.php
public function encodePassword($rawPassword, $salt)
    {
        if ($this->isPasswordTooLong($rawPassword)) {
            throw new BadCredentialsException();
        }

        $options = array(
            'cost' => $this->cost
        );

        return password_hash($rawPassword, PASSWORD_BCRYPT, $options);
    }
public function encodePassword($rawPassword, $salt)
    {
        if ($this->isPasswordTooLong($rawPassword)) {
            throw new BadCredentialsException();
        }

        $options = array(
            'cost' => $this->cost
        );

        return password_hash($rawPassword, PASSWORD_BCRYPT, $options);
    }
Encode Password

@param $rawPassword
@param $salt
@return string