Skip to content

Commit 54ef2ac

Browse files
authored
doc(provider): show how to enable link security to be able to use ReadLinkParameterProvider (#2217)
1 parent 812d718 commit 54ef2ac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/filters.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,12 @@ The `IriConverterParameterProvider` supports the following options in `extraProp
561561

562562
### `ReadLinkParameterProvider`
563563

564+
This provider must be enabled before it can be used.
565+
```
566+
api_platform:
567+
enable_link_security: true
568+
```
569+
564570
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.
565571
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.
566572

0 commit comments

Comments
 (0)