Skip to content

Commit

Permalink
#139 Add two new types of authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
isublimity committed Sep 29, 2020
1 parent e8febdf commit 2f16014
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Transport/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,16 @@ class Http
* @param string $password
* @param int $authMethod
*/
public function __construct($host, $port, $username, $password, int $authMethod = null)
public function __construct($host, $port, $username, $password, $authMethod = null)
{
$this->setHost($host, $port);

$this->_username = $username;
$this->_password = $password;
$this->_authMethod = $authMethod;
if ($authMethod) {
$this->_authMethod = $authMethod;
}

$this->_settings = new Settings($this);

$this->setCurler();
Expand Down

0 comments on commit 2f16014

Please sign in to comment.