https://g.co/gemini/share/8f22249b1578
You can use the following parameters in this message:
| Parameter | Description |
|---|---|
{{ detected }} | The detected encoding |
{{ encodings }} | The accepted encodings |
// src/Entity/FileDTO.php
namespace App\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Mapping\ClassMetadata;
class FileDTO
{
// ...
public static function loadValidatorMetadata(ClassMetadata $metadata): void
{
$metadata->addPropertyConstraint('content', new Assert\Charset('UTF-8'));
}
}Powered by Froala Editor