Skip to content

Commit 1028276

Browse files
committed
fix: must be other way around
1 parent e0ccf50 commit 1028276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,9 @@ private function registerElasticsearchConfiguration(ContainerBuilder $container,
811811
}
812812

813813
$clientClass = class_exists(\Elasticsearch\Client::class)
814-
// ES v8 and up
814+
// ES v7 and up
815815
? \Elasticsearch\Client::class
816-
// ES v7
816+
// ES v8
817817
: \Elastic\Elasticsearch\Client::class;
818818

819819
$clientDefinition = new Definition($clientClass);

0 commit comments

Comments
 (0)