Skip to content

Commit

Permalink
feat(elasticsearch): re-introduce v7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Verschuren committed Dec 22, 2024
1 parent 35160cf commit 3e6bb0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@ private function addElasticsearchSection(ArrayNodeDefinition $rootNode): void
->ifTrue()
->then(static function (bool $v): bool {
if (
// ES v8 and up
!class_exists(\Elasticsearch\Client::class)
// ES v7
!class_exists(\Elasticsearch\Client::class)
// ES v8 and up
&& !class_exists(\Elastic\Elasticsearch\Client::class)
) {
throw new InvalidConfigurationException('The elasticsearch/elasticsearch package is required for Elasticsearch support.');
Expand Down

0 comments on commit 3e6bb0b

Please sign in to comment.