core icon indicating copy to clipboard operation
core copied to clipboard

Invalid constructor arguments with ES document normalizer and default serializer context

Open dannyvw opened this issue 2 years ago • 6 comments

API Platform version(s) affected: 3.1.2

Description
When configure a default context for the serializer inside the Symfony framework configuration the following error occurred.

Invalid constructor argument 8 for service "api_platform.elasticsearch.normalizer.document": argument 7 must be defined before. Check your service definition.

How to reproduce
Enable ES and add default_context configuration

framework:
    serializer:
        default_context:
            datetime_format: 'Y-m-d'

dannyvw avatar Mar 22 '23 13:03 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 May 21 '23 18:05 stale[bot]

Not stale

dannyvw avatar May 21 '23 19:05 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 Jul 20 '23 19:07 stale[bot]

Not stale

dannyvw avatar Jul 25 '23 14:07 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 Sep 23 '23 17:09 stale[bot]

Not stale

dannyvw avatar Sep 25 '23 11:09 dannyvw