File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,22 @@ Symfony ships with the following value resolvers in the
94
94
You can restrict how the input can be formatted with the
95
95
:class: `Symfony\\ Component\\ HttpKernel\\ Attribute\\ MapDateTime ` attribute.
96
96
97
+ .. tip ::
98
+
99
+ The ``DateTimeInterface `` object is generated with the :doc: `Clock component </components/clock >`,
100
+ which means you can have full control over the date and time values the controller receives when
101
+ testing your application. This can be achieved by using the
102
+ :class: `Symfony\\ Component\\ Clock\\ MockClock ` implementation in your test environment.
103
+
97
104
.. versionadded :: 6.1
98
105
99
106
The ``DateTimeValueResolver `` was introduced in Symfony 6.1.
100
107
108
+ .. versionadded :: 6.3
109
+
110
+ The use of the :doc: `Clock component </components/clock >` to generate the
111
+ ``DateTimeInterface `` object was introduced in Symfony 6.3.
112
+
101
113
:class: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ArgumentResolver\\ RequestValueResolver `
102
114
Injects the current ``Request `` if type-hinted with ``Request `` or a class
103
115
extending ``Request ``.
You can’t perform that action at this time.
0 commit comments