Preparing for tests
This commit is contained in:
parent
0289f00aa5
commit
dc150881ae
3 changed files with 5 additions and 2 deletions
|
|
@ -6,7 +6,6 @@ use Aryess\PhpMatrixSdk\Exceptions\MatrixException;
|
|||
use Aryess\PhpMatrixSdk\Exceptions\MatrixHttpLibException;
|
||||
use Aryess\PhpMatrixSdk\Exceptions\MatrixRequestException;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Exception\RequestException;
|
||||
|
||||
/**
|
||||
* Contains all raw Matrix HTTP Client-Server API calls.
|
||||
|
|
@ -93,7 +92,10 @@ class MatrixHttpApi {
|
|||
$this->client = new Client();
|
||||
$this->default429WaitMs = $default429WaitMs;
|
||||
$this->useAuthorizationHeader = $useAuthorizationHeader;
|
||||
}
|
||||
|
||||
public function setClient(Client $client) {
|
||||
$this->client = $client;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue