We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2f3bc6 commit 5eaac70Copy full SHA for 5eaac70
src/ElasticsearchServiceProvider.php
@@ -203,9 +203,9 @@ protected function registerClientFactory(): void
203
ClientFactory::class
204
);
205
206
- $this->app->when(ClientFactoryInterface::class)
207
- ->needs(LoggerInterface::class)
208
- ->give('elasticsearch.logger');
+ $this->app->bind(ClientFactory::class, fn(Application $app) => new ClientFactory(
+ $app->make('elasticsearch.logger')
+ ));
209
210
$this->app->alias(
211
ClientFactoryInterface::class,
0 commit comments