Skip to content

Commit

Permalink
fix: must be other way around
Browse files Browse the repository at this point in the history
  • Loading branch information
darthf1 committed Jan 14, 2025
1 parent e0ccf50 commit 1028276
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,9 @@ private function registerElasticsearchConfiguration(ContainerBuilder $container,
}

$clientClass = class_exists(\Elasticsearch\Client::class)
// ES v8 and up
// ES v7 and up
? \Elasticsearch\Client::class
// ES v7
// ES v8
: \Elastic\Elasticsearch\Client::class;

$clientDefinition = new Definition($clientClass);
Expand Down

0 comments on commit 1028276

Please sign in to comment.