Skip to content

[Validator] Improve creating custom validation constraints #15501

@smilesrg

Description

@smilesrg

https://symfony.com/doc/current/validation/custom_constraint.html

There's no information about defining custom parameters and using it. Assume I want to create a custom constraint FooConstraint with validator FooValidator, using options optionFoo, optionBar. There is no documentation about how to add and use them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ValidatorhasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions