From d5865b27a832af363baabc4567a738088dc43fee Mon Sep 17 00:00:00 2001 From: Ivan Babenko Date: Mon, 20 May 2024 15:27:28 +0200 Subject: [PATCH] Revert "Use ClientInterface instead of Client" --- src/ClientBuilder.php | 4 ++-- src/ClientBuilderInterface.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ClientBuilder.php b/src/ClientBuilder.php index ea78668..adf6086 100644 --- a/src/ClientBuilder.php +++ b/src/ClientBuilder.php @@ -14,7 +14,7 @@ class ClientBuilder implements ClientBuilderInterface */ protected array $cache; - public function default(): ClientInterface + public function default(): Client { $name = config('elastic.client.default'); @@ -25,7 +25,7 @@ public function default(): ClientInterface return $this->connection($name); } - public function connection(string $name): ClientInterface + public function connection(string $name): Client { if (isset($this->cache[$name])) { return $this->cache[$name]; diff --git a/src/ClientBuilderInterface.php b/src/ClientBuilderInterface.php index b0d487a..029118a 100644 --- a/src/ClientBuilderInterface.php +++ b/src/ClientBuilderInterface.php @@ -2,11 +2,11 @@ namespace Elastic\Client; -use Elastic\Elasticsearch\ClientInterface; +use Elastic\Elasticsearch\Client; interface ClientBuilderInterface { - public function default(): ClientInterface; + public function default(): Client; - public function connection(string $name): ClientInterface; + public function connection(string $name): Client; }