Skip to content

Commit ea48af7

Browse files
authored
doc(provider): show how to enable link security to be able to use ReadLinkParameterProvider
1 parent 17d371c commit ea48af7

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
@@ -449,6 +449,12 @@ The `IriConverterParameterProvider` supports the following options in `extraProp
449449

450450
### `ReadLinkParameterProvider`
451451

452+
This provider must be enabled before it can be used.
453+
```
454+
api_platform:
455+
enable_link_security: true
456+
```
457+
452458
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.
453459
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.
454460

0 commit comments

Comments
 (0)