You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/identifiers.md
+65Lines changed: 65 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,71 @@ services:
172
172
173
173
Your `PersonProvider` will now work as expected!
174
174
175
+
## Decorating the IdentifiersExtractor
176
+
177
+
The `IdentifiersExtractor` is responsible for extracting identifiers from a resource. By default, when `\DateTime` objects are used as identifiers, their serialization to `IRI` format is handled by the `DateTimeUriVariableTransformer`, which internally uses Symfony's `DateTimeNormalizer`. If you need a custom format, you can decorate the `IdentifiersExtractor`.
178
+
179
+
Let's say you want to format all `\DateTime` identifiers to `Y-m-d`.
180
+
181
+
First, create a custom `IdentifiersExtractor` that decorates the original:
0 commit comments