Date/time arguments #8

Open
opened 2026-05-06 15:41:08 +02:00 by c.fahner · 0 comments
Owner

Currently only a limited set of scalar arguments to HTTP resources are supported: strings, ints, floats and bools. Anything else requires creating a custom "extractor."

It should be possible to declare DateTime, DateTimeImmutable, DateTimeInterface, DateInterval and DatePeriod as parameters to the #[Method]-annotated functions of HTTP resources.

Additionally some custom "date only" and "time only" types should be supported.

Currently only a limited set of scalar arguments to HTTP resources are supported: strings, ints, floats and bools. Anything else requires creating a custom "extractor." It should be possible to declare `DateTime`, `DateTimeImmutable`, `DateTimeInterface`, `DateInterval` and `DatePeriod` as parameters to the `#[Method]`-annotated functions of HTTP resources. Additionally some custom "date only" and "time only" types should be supported.
c.fahner added this to the v0.2 milestone 2026-05-06 15:41:08 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
slendium/framework#8
No description provided.