Issue Feature Closed

#98171Add type converter for all enums (in extbase)

Matthias Vogel 08/18/22, 15:55 updated 10/04/22, 08:36

Description

it should be possible to use Enums as typehints in extbase actions.

with an EnumConverter it would be possible to use an Enum like this:

enum ClosedStates
{
    case hide;
    case show;
    case all;
}

in the action it would be possible to use it like this:

    public function fixPriceOverviewAction(ClosedStates $closed = ClosedStates::hide): ResponseInterface
    {

I will push a patch shortly.

Reviews 1