We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e013f3 commit 98a2f86Copy full SHA for 98a2f86
src/Symfony/Bundle/DependencyInjection/Configuration.php
@@ -469,9 +469,9 @@ private function addElasticsearchSection(ArrayNodeDefinition $rootNode): void
469
->ifTrue()
470
->then(static function (bool $v): bool {
471
if (
472
- // ES v8 and up
473
- !class_exists(\Elasticsearch\Client::class)
474
// ES v7
+ !class_exists(\Elasticsearch\Client::class)
+ // ES v8 and up
475
&& !class_exists(\Elastic\Elasticsearch\Client::class)
476
) {
477
throw new InvalidConfigurationException('The elasticsearch/elasticsearch package is required for Elasticsearch support.');
0 commit comments