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
8585:class: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ArgumentResolver\\ RequestAttributeValueResolver `
8686 Attempts to find a request attribute that matches the name of the argument.
8787
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+
88101:class: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ArgumentResolver\\ RequestValueResolver `
89102 Injects the current ``Request `` if type-hinted with ``Request `` or a class
90103 extending ``Request ``.
You can’t perform that action at this time.
0 commit comments