This repository was archived by the owner on Jun 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-296
lines changed
DependencyInjection/CompilerPass Expand file tree Collapse file tree 3 files changed +19
-296
lines changed Original file line number Diff line number Diff line change 2020use Apisearch \App \InMemoryAppRepository ;
2121use Apisearch \Http \GuzzleClient ;
2222use Apisearch \Http \RetryMap ;
23+ use Apisearch \Http \TCPClient ;
2324use Apisearch \Http \TestClient ;
2425use Apisearch \Model \AppUUID ;
2526use Apisearch \Model \IndexUUID ;
@@ -212,10 +213,10 @@ private function createClient(
212213 ])
213214 ->setPublic ($ this ->repositoryIsTest ($ repositoryConfiguration ))
214215 : $ container
215- ->register ($ clientName , GuzzleClient ::class)
216+ ->register ($ clientName , TCPClient ::class)
216217 ->setArguments ([
217- new Reference ('apisearch.guzzle_client_adapter ' ),
218218 $ repositoryConfiguration ['endpoint ' ],
219+ new Reference ('apisearch.http_adapter ' ),
219220 $ repositoryConfiguration ['version ' ],
220221 new reference ($ clientRetryMapName ),
221222 ])
Original file line number Diff line number Diff line change 11services :
22
33 #
4- # Commands
4+ # HTTP
55 #
6- apisearch.guzzle_client_adapter :
7- class : GuzzleHttp\Client
8- arguments :
9- - { defaults: { timeout: 5, http_errors: false } }
6+ apisearch.http_curl_adapter :
7+ class : Apisearch\Http\CurlAdapter
8+
9+ apisearch.http_adapter :
10+ alias : apisearch.http_curl_adapter
You can’t perform that action at this time.
0 commit comments