We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MapDateTime
ValueResolver
1 parent 59b362d commit d2376aaCopy full SHA for d2376aa
src/Symfony/Component/HttpKernel/Attribute/MapDateTime.php
@@ -11,14 +11,18 @@
11
12
namespace Symfony\Component\HttpKernel\Attribute;
13
14
+use Symfony\Component\HttpKernel\Controller\ArgumentResolver\DateTimeValueResolver;
15
+
16
/**
17
* Controller parameter tag to configure DateTime arguments.
18
*/
19
#[\Attribute(\Attribute::TARGET_PARAMETER)]
-class MapDateTime
20
+class MapDateTime extends ValueResolver
21
{
22
public function __construct(
- public readonly ?string $format = null
23
+ public readonly ?string $format = null,
24
+ bool $disabled = false,
25
) {
26
+ parent::__construct(DateTimeValueResolver::class, $disabled);
27
}
28
0 commit comments