📈 Add GlitchTip
Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit was merged in pull request #16.
This commit is contained in:
24
vendor/php-http/client-common/src/EmulatedHttpClient.php
vendored
Normal file
24
vendor/php-http/client-common/src/EmulatedHttpClient.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Http\Client\Common;
|
||||
|
||||
use Http\Client\HttpAsyncClient;
|
||||
use Http\Client\HttpClient;
|
||||
|
||||
/**
|
||||
* Emulates a synchronous HTTP client with the help of an asynchronous client.
|
||||
*
|
||||
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
||||
*/
|
||||
final class EmulatedHttpClient implements HttpClient, HttpAsyncClient
|
||||
{
|
||||
use HttpAsyncClientDecorator;
|
||||
use HttpClientEmulator;
|
||||
|
||||
public function __construct(HttpAsyncClient $httpAsyncClient)
|
||||
{
|
||||
$this->httpAsyncClient = $httpAsyncClient;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user