Skip to content

Custom property path #22

@rela589n

Description

@rela589n

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 make sense to provide the way of specifying custom name instead of inventory property path

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