From ea48af7697ee8810cd54d385cbd321ee7f3adbf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my?= Date: Tue, 7 Oct 2025 09:19:07 +0200 Subject: [PATCH] doc(provider): show how to enable link security to be able to use ReadLinkParameterProvider --- core/filters.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/filters.md b/core/filters.md index 9a53f11bf4a..a7315784515 100644 --- a/core/filters.md +++ b/core/filters.md @@ -449,6 +449,12 @@ The `IriConverterParameterProvider` supports the following options in `extraProp ### `ReadLinkParameterProvider` +This provider must be enabled before it can be used. +``` +api_platform: + enable_link_security: true +``` + This provider fetches a linked resource from a given identifier. This is useful when you need to load a related entity to use later, for example in your own state provider. When you have an API resource with a custom `uriTemplate` that includes parameters, the `ReadLinkParameterProvider` can automatically resolve the linked resource using the operation's URI template. This is particularly useful for nested resources or when you need to load a parent resource based on URI variables.