https://g.co/gemini/share/852d1fd43a35
// src/Entity/Author.php
namespace App\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
class Author
{
#[Assert\Callback]
public function validate(ExecutionContextInterface $context, mixed $payload): void
{
// ...
}
}Powered by Froala Editor