From 2d09adbba2624e7fc5c837976b942b360ddc7c39 Mon Sep 17 00:00:00 2001 From: Moritz Friedrich Date: Tue, 14 May 2024 22:58:06 +0200 Subject: [PATCH] Fixed logger binding --- src/ElasticsearchServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ElasticsearchServiceProvider.php b/src/ElasticsearchServiceProvider.php index e3a385d..d79cf52 100755 --- a/src/ElasticsearchServiceProvider.php +++ b/src/ElasticsearchServiceProvider.php @@ -201,7 +201,7 @@ protected function registerClientFactory(): void ClientFactory::class ); - $this->app->when(ClientFactory::class) + $this->app->when(ClientFactoryInterface::class) ->needs(LoggerInterface::class) ->give('elasticsearch.logger');