feat: add CurrencyValidator

fix: add CurrencyValidator

CurrencyValidator

zarad
This commit is contained in:
2024-01-17 13:50:50 +01:00
parent 64a07b232a
commit 1437ce4558
13 changed files with 2331 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Entity\QRCode;
use App\Service\CurrencyListerInterface;
use App\Validator\Currency;
use Symfony\Component\Validator\Constraints as Assert;
/**
@@ -19,6 +19,7 @@ class QRCodeMoney
// TODO: getCurrencies validation
#[Assert\NotBlank(message: 'messages.fill_value')]
#[Currency(message: 'messages.not_currency')]
private ?string $currency;
/**