Actions
Feature #98171
closedAdd type converter for all enums (in extbase)
Start date:
2022-08-18
Due date:
% Done:
100%
Estimated time:
PHP Version:
8.1
Tags:
Complexity:
Sprint Focus:
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.
Actions