2015-01-30 09:40:06 +01:00
|
|
|
# Sf
|
|
|
|
|
2018-08-19 20:09:32 +02:00
|
|
|
- `Sf(Constraint $constraint)`
|
|
|
|
- `Sf(Constraint $constraint, ValidatorInterface $validator)`
|
2015-01-30 09:40:06 +01:00
|
|
|
|
2018-08-19 20:09:32 +02:00
|
|
|
Validate the input with a Symfony Validator (>=4.0 or >=3.0) Constraint.
|
2015-01-30 09:40:06 +01:00
|
|
|
|
|
|
|
```php
|
2018-08-19 20:09:32 +02:00
|
|
|
use Symfony\Component\Validator\Constraint\Iban;
|
|
|
|
|
|
|
|
v::sf(new Iban())->validate('NL39 RABO 0300 0652 64'); // true
|
2015-01-30 09:40:06 +01:00
|
|
|
```
|
|
|
|
|
2018-08-19 20:09:32 +02:00
|
|
|
This rule will keep all the messages returned from Symfony.
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Integrations
|
|
|
|
|
2017-03-27 22:04:13 +02:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
Version | Description
|
|
|
|
--------|-------------
|
2018-08-19 20:09:32 +02:00
|
|
|
2.0.0 | Do not create constraints anymore
|
|
|
|
2.0.0 | Upgraded support to version >=4.0 or >=3.0 of Symfony Validator
|
2017-03-27 22:04:13 +02:00
|
|
|
0.3.9 | Created
|
2015-01-30 09:40:06 +01:00
|
|
|
|