src/MovingImage/Client/VMPro/Factory/Guzzle5ApiClientFactory.php 1 location
|
@@ 68-75 (lines=8) @@
|
| 65 |
|
/** |
| 66 |
|
* {@inheritdoc} |
| 67 |
|
*/ |
| 68 |
|
public function createSimple($baseUri, ApiCredentials $credentials) |
| 69 |
|
{ |
| 70 |
|
$tokenManager = $this->createTokenManager($baseUri, $credentials); |
| 71 |
|
$tokenSubscriber = $this->createTokenSubscriber($tokenManager); |
| 72 |
|
$httpClient = $this->createHttpClient($baseUri, [$tokenSubscriber]); |
| 73 |
|
|
| 74 |
|
return $this->create($httpClient, $this->createSerializer()); |
| 75 |
|
} |
| 76 |
|
} |
| 77 |
|
|
src/MovingImage/Client/VMPro/Factory/Guzzle6ApiClientFactory.php 1 location
|
@@ 73-80 (lines=8) @@
|
| 70 |
|
/** |
| 71 |
|
* {@inheritdoc} |
| 72 |
|
*/ |
| 73 |
|
public function createSimple($baseUri, ApiCredentials $credentials) |
| 74 |
|
{ |
| 75 |
|
$tokenManager = $this->createTokenManager($baseUri, $credentials); |
| 76 |
|
$tokenMiddleware = $this->createTokenMiddleware($tokenManager); |
| 77 |
|
$httpClient = $this->createHttpClient($baseUri, [$tokenMiddleware]); |
| 78 |
|
|
| 79 |
|
return $this->create($httpClient, $this->createSerializer()); |
| 80 |
|
} |
| 81 |
|
} |
| 82 |
|
|