Skip to content

There is not enough information about custom verification #453

@DisboardTetta

Description

@DisboardTetta

Description

Hi, the forms page is sorely lacking information on how to perform custom type checking.
For example, I want to receive a specific data format in a string, let's say it's a UUID. How do I call UUID::isValid($field, 'v7')?

I see that you use PHP Attributes for typical checks, but there's no information about custom checks.

Of course, I can use the __invoke() method, after hydration and primitive rules, to partially check the content of the forms themselves, but in this case, for small forms, I don't really need the form class as is.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions