core icon indicating copy to clipboard operation
core copied to clipboard

Deprecation ElasticsearchProviderResourceMetadataCollectionFactory

Open dannyvw opened this issue 1 year ago • 2 comments

API Platform version(s) affected: 3.4

Description

User Deprecated: Since api-platform/core 4.0: Using $client at "ApiPlatform\Elasticsearch\Metadata\Resource\Factory\ElasticsearchProviderResourceMetadataCollectionFactory" is deprecated and the argument will be removed.

We have installed api-platform/core 3.4. Is the message perhaps incorrect?

How to reproduce

Possible Solution

Additional Context

How can we solve this deprecation?

dannyvw avatar Oct 08 '24 12:10 dannyvw

do you have a stack trace for this? I guess installing the next version of elasticsearch php solves the issue. It looks like it should be 3.4 not 4.0.

soyuka avatar Oct 09 '24 08:10 soyuka

Should indeed be resolved when updating elasticsearch. The client is set here https://github.com/api-platform/core/blob/3.4/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php#L967 Changing the message to 3.4 is then enough

dannyvw avatar Oct 09 '24 10:10 dannyvw

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 08 '24 14:12 stale[bot]