mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-13 18:59:36 +00:00
Moved custom validators from annotations to attributes
This commit is contained in:
parent
e5a14557a2
commit
930adaf439
27 changed files with 50 additions and 148 deletions
|
|
@ -27,9 +27,8 @@ use Symfony\Component\Validator\Constraints\Url;
|
|||
|
||||
/**
|
||||
* Constraints the field that way that the content is either an url or a path to a builtin ressource (like %FOOTPRINTS%).
|
||||
*
|
||||
* @Annotation
|
||||
*/
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
||||
class UrlOrBuiltin extends Url
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue