Moved custom validators from annotations to attributes

This commit is contained in:
Jan Böhmer 2023-06-11 19:32:15 +02:00
parent e5a14557a2
commit 930adaf439
27 changed files with 50 additions and 148 deletions

View file

@ -26,9 +26,8 @@ use Symfony\Component\Validator\Constraint;
/**
* This constraint restricts a user in that way that it can not lock itself out of the user system.
*
* @Annotation
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class NoLockout extends Constraint
{
public string $message = 'validator.noLockout';