Skip to content

Support for backed Enums and DateTimes as query/action parametersΒ #20613

@chriscpty

Description

@chriscpty

As of current, controller action parameters can only have some built-in types (int, float, array etc.). Adding logic for \DateTime, \DateTimeImmutable and backed enums to the related logic in yii\base\Controller::bindActionParams should be easy; I'm willing to try implementing it myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions