You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serializer's documentation explains that we can specify a context specific to normalization or denormalization using normalizationContext and denormalizationContext keys in Yaml configuration:
if ($context = $line['normalization_context'] ?? false) {
$attributeMetadata->setNormalizationContextForGroups($context, $groups);
}
if ($context = $line['denormalization_context'] ?? false) {
$attributeMetadata->setDenormalizationContextForGroups($context, $groups);
}
Links above are for 6.4 but it seems to be there from the beginning, nothing changed in the code. Confusion may be due to the name of the corresponding attribute.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Serializer's documentation explains that we can specify a context specific to normalization or denormalization using
normalizationContext
anddenormalizationContext
keys in Yaml configuration:https://github.com/symfony/symfony-docs/blob/6.4/serializer.rst?plain=1#L523-L524
In the other hand, the
YamlFileLoader
is looking fornormalization_context
anddenormalization_context
keys:https://github.com/symfony/symfony/blob/b43330568c434747ec5efe2aed7c14c7995e551a/src/Symfony/Component/Serializer/Mapping/Loader/YamlFileLoader.php#L114-L120
Links above are for
6.4
but it seems to be there from the beginning, nothing changed in the code. Confusion may be due to the name of the corresponding attribute.The text was updated successfully, but these errors were encountered: