Category: normalization

Uncaught PHP Exception SymfonyComponentSerializerExceptionLogicException [closed]

The injected serializer must be an instance of “SymfonyComponentSerializerNormalizerNormalizerInterface But iam implement NormalizerInterface already!!. it is working on dev env but it throw an exception on prod. env Code sample Source: Symfony Questions

Symfony Api Platform Normalization Context Groups datetime property issue

I’m struggle with strange issue when using normalizer with groups. It look like there is a problem with datetime properties. Issue occurs when using normalizationContext on ApiResource and/or normalization_context on operation. <?php namespace AppEntity; use ApiPlatformCoreAnnotationApiResource; use DoctrineORMMapping as ORM;…