File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Elastic \Elasticsearch \Client ;
6
6
use Elastic \Elasticsearch \ClientBuilder as BaseClientBuilder ;
7
- use Elastic \Elasticsearch \ClientInterface ;
8
7
use ErrorException ;
9
8
10
9
class ClientBuilder implements ClientBuilderInterface
@@ -14,7 +13,7 @@ class ClientBuilder implements ClientBuilderInterface
14
13
*/
15
14
protected array $ cache ;
16
15
17
- public function default (): ClientInterface
16
+ public function default (): Client
18
17
{
19
18
$ name = config ('elastic.client.default ' );
20
19
@@ -25,7 +24,7 @@ public function default(): ClientInterface
25
24
return $ this ->connection ($ name );
26
25
}
27
26
28
- public function connection (string $ name ): ClientInterface
27
+ public function connection (string $ name ): Client
29
28
{
30
29
if (isset ($ this ->cache [$ name ])) {
31
30
return $ this ->cache [$ name ];
Original file line number Diff line number Diff line change 2
2
3
3
namespace Elastic \Client ;
4
4
5
- use Elastic \Elasticsearch \ClientInterface ;
5
+ use Elastic \Elasticsearch \Client ;
6
6
7
7
interface ClientBuilderInterface
8
8
{
9
- public function default (): ClientInterface ;
9
+ public function default (): Client ;
10
10
11
- public function connection (string $ name ): ClientInterface ;
11
+ public function connection (string $ name ): Client ;
12
12
}
You can’t perform that action at this time.
0 commit comments