Fix regression issue and readd basic auth support (#328)

This commit is contained in:
Marcel Pociot
2022-07-04 13:26:21 +02:00
committed by GitHub
parent 5d99a0d7d8
commit 2d3b10b63d
4 changed files with 25 additions and 4 deletions

View File

@@ -16,13 +16,18 @@ class Configuration
/** @var string|null */
protected $auth;
public function __construct(string $host, int $port, ?string $auth = null)
/** @var string|null */
protected $basicAuth;
public function __construct(string $host, int $port, ?string $auth = null, ?string $basicAuth = null)
{
$this->serverHost = $this->host = $host;
$this->port = $port;
$this->auth = $auth;
$this->basicAuth = $basicAuth;
}
public function host(): string
@@ -45,6 +50,11 @@ class Configuration
return $this->auth;
}
public function basicAuth(): ?string
{
return $this->basicAuth;
}
public function port(): int
{
return intval($this->port);