From 80aeb3158311ff4ce9ad28b7f813dedee7744828 Mon Sep 17 00:00:00 2001 From: Louis-Marie Date: Mon, 30 Jan 2023 09:46:07 +0100 Subject: [PATCH] fix(symfony): autoconfigure elasticsearch extension (#5379) Co-authored-by: Louis-Marie GABORIT --- phpstan.neon.dist | 2 +- src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index d36c0ce121d..c4973257a04 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -61,12 +61,12 @@ parameters: - src/Core/Bridge/Doctrine/Orm/Util/QueryNameGenerator.php - src/Core/Bridge/Elasticsearch/DataProvider/Extension/AbstractFilterExtension.php - src/Core/Bridge/Elasticsearch/DataProvider/Extension/ConstantScoreFilterExtension.php + - src/Core/Bridge/Elasticsearch/DataProvider/Extension/RequestBodySearchCollectionExtensionInterface.php - src/Core/Bridge/Elasticsearch/DataProvider/Extension/SortExtension.php - src/Core/Bridge/Elasticsearch/DataProvider/Extension/SortFilterExtension.php - src/Core/Bridge/Elasticsearch/DataProvider/Paginator.php - src/Core/Bridge/Elasticsearch/Exception/IndexNotFoundException.php - src/Core/Bridge/Elasticsearch/Exception/NonUniqueIdentifierException.php - - src/Core/Bridge/Elasticsearch/Extension/RequestBodySearchCollectionExtensionInterface.php - src/Core/Bridge/Elasticsearch/Metadata/Document/DocumentMetadata.php - src/Core/Bridge/Elasticsearch/Metadata/Document/Factory/AttributeDocumentMetadataFactory.php - src/Core/Bridge/Elasticsearch/Metadata/Document/Factory/CachedDocumentMetadataFactory.php diff --git a/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php b/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php index 03b0b7daa13..6ad127f8412 100644 --- a/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php +++ b/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php @@ -17,7 +17,7 @@ use ApiPlatform\Api\UrlGeneratorInterface; use ApiPlatform\Core\Annotation\ApiResource as ApiResourceAnnotation; use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\AbstractContextAwareFilter as DoctrineOrmAbstractContextAwareFilter; -use ApiPlatform\Core\Bridge\Elasticsearch\Extension\RequestBodySearchCollectionExtensionInterface as LegacyRequestBodySearchCollectionExtensionInterface; +use ApiPlatform\Core\Bridge\Elasticsearch\DataProvider\Extension\RequestBodySearchCollectionExtensionInterface as LegacyRequestBodySearchCollectionExtensionInterface; use ApiPlatform\Core\DataPersister\DataPersisterInterface; use ApiPlatform\Core\DataProvider\CollectionDataProviderInterface; use ApiPlatform\Core\DataProvider\ItemDataProviderInterface;