[SoapClient] Fixed typo for proxy options

Fixed #46
This commit is contained in:
Francis Besset
2014-08-18 10:31:20 +02:00
parent 33d641de4e
commit 960c9f557a
3 changed files with 12 additions and 9 deletions

View File

@ -180,14 +180,14 @@ class SoapClientBuilder extends AbstractSoapBuilder
*
* @return \BeSimple\SoapClient\SoapClientBuilder
*/
public function withProxy($host, $port, $username = null, $password = null)
public function withProxy($host, $port, $user = null, $pass = null)
{
$this->soapOptions['proxy_host'] = $host;
$this->soapOptions['proxy_port'] = $port;
if ($username) {
$this->soapOptions['proxy_login'] = $username;
$this->soapOptions['proxy_password'] = $password;
if ($user) {
$this->soapOptions['proxy_user'] = $user;
$this->soapOptions['proxy_pass'] = $pass;
}
return $this;
@ -236,4 +236,4 @@ class SoapClientBuilder extends AbstractSoapBuilder
{
$this->validateWsdl();
}
}
}