Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
resetParameters() should be return Client for ZF1 API compatiblity
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,10 @@ protected function calcAuthDigest($user, $password, $type = self::AUTH_BASIC, $d
}
return $response;
}

/**
* Reset all the HTTP parameters (auth,cookies,request, response, etc)
*
* @return Client
*/
public function resetParameters()
{
Expand All @@ -726,6 +727,8 @@ public function resetParameters()
$this->response = null;

$this->setUri($uri);

return $this;
}

/**
Expand Down

0 comments on commit 4ec3835

Please sign in to comment.