From c774fe770a30fff174a7c85e49e5dc6e23c5a340 Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Sun, 3 Nov 2024 15:19:16 -0500 Subject: [PATCH] [ci skip] Add new feature note --- docs/serializer.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/serializer.md b/docs/serializer.md index f08eb43..f4e29ab 100644 --- a/docs/serializer.md +++ b/docs/serializer.md @@ -60,4 +60,6 @@ Below is an example of how a `Pagerfanta\Pagerfanta` instance is serialized into ### Preserving Array Keys +
This context attribute was introduced in PagerfantaBundle 4.5.
+ Both serialization integrations support configuring the way array keys are preserved using the `pagerfanta_preserve_keys` context attribute. By default, or when the attribute is explicitly set to null, the payload will be serialized exactly as provided by the pagination adapter. However, when the attribute is set to a boolean value, the value will be used as the second argument when calling the native `iterator_to_array()` function.