16 lines
354 B
PHP
16 lines
354 B
PHP
<?php
|
|
|
|
namespace App\Validator;
|
|
|
|
use Symfony\Component\Validator\Constraint;
|
|
|
|
/**
|
|
* @Annotation
|
|
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
|
*/
|
|
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
|
|
class ImageSafety extends Constraint
|
|
{
|
|
public string $message = 'The uploaded image is not safe.';
|
|
}
|