Skip to content

Commit 25b8e5e

Browse files
author
Kapitanov Andrey
committed
Revert "ECS-365 elastic http client"
This reverts commit 73bcc91.
1 parent 73bcc91 commit 25b8e5e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ElasticClient.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,8 @@ public static function fromConfig(array $config): static
157157
$builder->setBasicAuthentication($username, $password);
158158
}
159159

160-
if (filled($config['http_client'] ?? null)) {
161-
$httpClient = call_user_func_array($config['http_client'], []);
162-
163-
$client = new $httpClient['class']();
164-
165-
$builder->setHttpClient($client);
166-
$builder->setHttpClientOptions($httpClient['options']);
160+
if (filled($config['handler'] ?? null)) {
161+
$builder->setHandler(call_user_func_array($config['handler'], []));
167162
}
168163

169164
return new static($builder->build());

0 commit comments

Comments
 (0)