function MapDateTime::__construct
Parameters
string|null $format The DateTime format to use, @see https://php.net/datetime.format:
bool $disabled Whether this value resolver is disabled; this allows to enable a value resolver globally while disabling it in specific cases:
class-string<ValueResolverInterface>|string $resolver The name of the resolver to use:
Overrides ValueResolver::__construct
File
-
vendor/
symfony/ http-kernel/ Attribute/ MapDateTime.php, line 28
Class
- MapDateTime
- Controller parameter tag to configure DateTime arguments.
Namespace
Symfony\Component\HttpKernel\AttributeCode
public function __construct(?string $format = null, bool $disabled = false, string $resolver = DateTimeValueResolver::class) {
parent::__construct($resolver, $disabled);
}