From 3ca34451d81bbc5768325bf69a4b80569a26930a Mon Sep 17 00:00:00 2001 From: alanx15a2 Date: Wed, 7 Dec 2022 01:16:12 +0800 Subject: [PATCH] change CurlHttpClient to HttpClientInterface --- src/UsesGoutte.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/UsesGoutte.php b/src/UsesGoutte.php index ad68f8f..5f9be19 100644 --- a/src/UsesGoutte.php +++ b/src/UsesGoutte.php @@ -4,7 +4,7 @@ use Goutte\Client as GoutteClient; use Symfony\Component\DomCrawler\Crawler; -use Symfony\Component\HttpClient\CurlHttpClient; +use Symfony\Contracts\HttpClient\HttpClientInterface; trait UsesGoutte { @@ -18,7 +18,7 @@ trait UsesGoutte /** * Holds the HttpClient * - * @var Symfony\Component\HttpClient\CurlHttpClient + * @var Symfony\Contracts\HttpClient\HttpClientInterface; */ protected $httpClient = null; @@ -44,9 +44,9 @@ public function setClient(GoutteClient $client): self /** * Overwrites the httpClient * - * @param Symfony\Component\HttpClient\CurlHttpClient $httpClient + * @param Symfony\Contracts\HttpClient\HttpClientInterface $httpClient */ - public function setHttpClient(CurlHttpClient $httpClient): self + public function setHttpClient(HttpClientInterface $httpClient): self { $this->httpClient = $httpClient;