php bin/console make:validator

Create a new validator and constraint class

Usage

make:validator [<name>]

Arguments

name   The name of the validator class (e.g. <fg=yellow>EnabledValidator</>) 

Help

The make:validator command generates a new validation constraint.

php bin/console make:validator EnabledValidator

If the argument is missing, the command will ask for the constraint class name interactively.