Say we have following command:
final readonly class AssignInventoryCommand
{
public function __construct(
private string $employeeId,
#[Assert\Valid]
private InventoryDto $inventory,
) {
}
}
And what we do is get employeeId from path parameter and InventoryDto from MapRequestPayload.
It would be good to provide the way of specifying custom name instead of inventory property path
Say we have following command:
And what we do is get employeeId from path parameter and
InventoryDtofromMapRequestPayload.It would be good to provide the way of specifying custom name instead of
inventoryproperty path