Files
FHeD/vendor/php-http/client-common/src/EmulatedHttpClient.php
Luke Tainton 75f1dde336 📈 Install Sentry
Signed-off-by: Luke Tainton <luke@tainton.uk>
2020-08-05 18:45:39 +01:00

25 lines
539 B
PHP

<?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;
}
}