. */ declare(strict_types=1); namespace App\Validator\Constraints; use App\Entity\Attachments\Attachment; use Symfony\Component\Validator\Constraints\Url; /** * Constraints the field that way that the content is either a url or a path to a builtin ressource (like %FOOTPRINTS%). * * @Annotation */ class UrlOrBuiltin extends Url { /** * @var array A list of the placeholders that are treated as builtin */ public $allowed_placeholders = Attachment::BUILTIN_PLACEHOLDER; }