Skip to content

Commit 55aacb1

Browse files
committed
fix: iri converter method
1 parent 8b63319 commit 55aacb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/serialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ class PlainIdentifierDenormalizer implements ContextAwareDenormalizerInterface,
500500
*/
501501
public function denormalize($data, $class, $format = null, array $context = [])
502502
{
503-
$data['relatedDummy'] = $this->iriConverter->getItemIriFromResourceClass(RelatedDummy::class, ['id' => $data['relatedDummy']]);
503+
$data['relatedDummy'] = $this->iriConverter->getIriFromResource(resource: RelatedDummy::class, context: ['uri_variables' => ['id' => $data['relatedDummy']]]);
504504
505505
return $this->denormalizer->denormalize($data, $class, $format, $context + [__CLASS__ => true]);
506506
}

core/upgrade-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ to work in 2.6 (for example `PropertyMetadataFactoryInterface` or
167167
resolve the deprecations then to set this flag to `false` to use the new metadata system.
168168

169169
When `metadata_backward_compatibility_layer` is set to `false`:
170-
- there's still a bridge with the legacy `ApiPlatform\Core\Annotation\ApiResource` and old metadata will still work
170+
- there's still a bridge with the legacy `ApiPlatform\Core\Annotation\ApiResource` and old metadata will still work
171171
- the deprecated symfony services will have their interface changed (for example `ApiPlatform\Core\Api\IriConverterInterface` will be `ApiPlatform\Api\IriConverterInterface`) and it may break your dependency injection.
172172
- the new metadata system is available `ApiPlatform\Metadata\ApiResource`
173173

0 commit comments

Comments
 (0)