Skip to content

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Jan 28, 2026

Q A
Branch? main
Tickets prerequisite for #7710
License MIT
Doc PR na

@soyuka soyuka force-pushed the denormalizer branch 3 times, most recently from a551716 to ea40daf Compare January 29, 2026 15:16
* @author Amrouche Hamza <hamza.simperfit@gmail.com>
* @author Baptiste Meyer <baptiste.meyer@gmail.com>
*
* @todo Denormalization methods should be deprecated in 5.x, use ItemDenormalizer instead
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should ItemNormalizer::denormalize call ItemDenormalizer::denormalize to ensure that futur bugfix/feature will be done on both ?

Cause we're having duplicate code with denormalize no ?

public const FORMAT = 'jsonapi';

private array $componentsCache = [];
use ItemNormalizerTrait;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some methods to remove here ?
Like supportsDenormalization which is already in the trait if I read correctly

*
* @throws NotNormalizableValueException
*
* @todo This method should be deprecated in 5.x, use ItemDenormalizer instead
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, could it call ItemDenormalizer::denormalize ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants