feat: refactor callback validators to dedicated class
This commit is contained in:
1 parent
e4e03a848b
commit
72d413dc99
4 files changed
+94
-70
No files matched your search
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Validator\Constraints;
|
||||
|
||||
use Symfony\Component\Validator\Constraint;
|
||||
|
||||
#[\Attribute]
|
||||
class Participant extends Constraint
|
||||
{
|
||||
public function getTargets(): array|string
|
||||
{
|
||||
return static::CLASS_CONSTRAINT;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user