Skip to content

Commit b72c64f

Browse files
committed
feat(elasticsearch): introduce v7 support
1 parent e7358b6 commit b72c64f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Elasticsearch/State/CollectionProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
use ApiPlatform\State\ApiResource\Error;
2222
use ApiPlatform\State\Pagination\Pagination;
2323
use ApiPlatform\State\ProviderInterface;
24-
use Elasticsearch\Client as V7Client;
25-
use Elasticsearch\Common\Exceptions\Missing404Exception as V7Missing404Exception;
2624
use Elastic\Elasticsearch\Client;
2725
use Elastic\Elasticsearch\Exception\ClientResponseException;
2826
use Elastic\Elasticsearch\Response\Elasticsearch;
27+
use Elasticsearch\Client as V7Client;
28+
use Elasticsearch\Common\Exceptions\Missing404Exception as V7Missing404Exception;
2929
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
3030

3131
/**

src/Elasticsearch/State/ItemProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
use ApiPlatform\Metadata\Util\Inflector;
2121
use ApiPlatform\State\ApiResource\Error;
2222
use ApiPlatform\State\ProviderInterface;
23-
use Elasticsearch\Client as V7Client;
24-
use Elasticsearch\Common\Exceptions\Missing404Exception as V7Missing404Exception;
2523
use Elastic\Elasticsearch\Client;
2624
use Elastic\Elasticsearch\Exception\ClientResponseException;
2725
use Elastic\Elasticsearch\Response\Elasticsearch;
26+
use Elasticsearch\Client as V7Client;
27+
use Elasticsearch\Common\Exceptions\Missing404Exception as V7Missing404Exception;
2828
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
2929
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
3030

0 commit comments

Comments
 (0)