File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,19 @@ Symfony ships with the following value resolvers in the
85
85
:class: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ArgumentResolver\\ RequestAttributeValueResolver `
86
86
Attempts to find a request attribute that matches the name of the argument.
87
87
88
+ :class: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ArgumentResolver\\ DateTimeValueResolver `
89
+ Attempts to find a request attribute that matches the name of the argument
90
+ and injects a ``DateTimeInterface `` object if type-hinted with a class
91
+ extending ``DateTimeInterface ``.
92
+
93
+ By default any input that can be parsed as a date string by PHP is accepted.
94
+ You can restrict how the input can be formatted with the
95
+ :class: `Symfony\\ Component\\ HttpKernel\\ Attribute\\ MapDateTime ` attribute.
96
+
97
+ .. versionadded :: 6.1
98
+
99
+ The ``DateTimeValueResolver `` was introduced in Symfony 6.1.
100
+
88
101
:class: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ArgumentResolver\\ RequestValueResolver `
89
102
Injects the current ``Request `` if type-hinted with ``Request `` or a class
90
103
extending ``Request ``.
You can’t perform that action at this time.
0 commit comments