Skip to content

Commit 98a2f86

Browse files
Frank Verschurendarthf1
authored andcommitted
feat(elasticsearch): re-introduce v7 support
1 parent 4e013f3 commit 98a2f86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,9 @@ private function addElasticsearchSection(ArrayNodeDefinition $rootNode): void
469469
->ifTrue()
470470
->then(static function (bool $v): bool {
471471
if (
472-
// ES v8 and up
473-
!class_exists(\Elasticsearch\Client::class)
474472
// ES v7
473+
!class_exists(\Elasticsearch\Client::class)
474+
// ES v8 and up
475475
&& !class_exists(\Elastic\Elasticsearch\Client::class)
476476
) {
477477
throw new InvalidConfigurationException('The elasticsearch/elasticsearch package is required for Elasticsearch support.');

0 commit comments

Comments
 (0)