php bin/console make:validator
Creates 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.