Releases: phpmentors-jp/validator-bundle
Releases · phpmentors-jp/validator-bundle
PHPMentorsValidatorBundle 1.3.0 (stable)
PHPMentorsValidatorBundle 1.2.0 (stable)
Release Date: 2015-04-27 UTC
What's New in PHPMentorsValidatorBundle 1.2.0
Range constraint
The Range
constraint allows you to use a custom factory to provide the value of min
or max
options as the following:
src/AppBundle/Resources/config/validation.yml
:
AppBundle\Entity\Person:
properties:
...
birthday:
...
- PHPMentors:Range:
max:
service: app.age_range
method: getMinAsDate
maxMessage: ...
min:
service: app.age_range
method: getMaxAsDate
minMessage: ...
PHPMentorsValidatorBundle 1.1.0 (stable)
Release Date: 2015-07-13 UTC
What's New in PHPMentorsValidatorBundle 1.1.0
New minimum required Symfony version
(Issue #10)
As of this version, Symfony 2.7.0 or greater is required.
AtLeastOneOf constraint
(Issue #9)
The AtLeastOneOf
constraint allows you to define two or more properties that at least one of is required.
Bug fixes
The following bugs have been fixed:
PHPMentorsValidatorBundle 1.0.0 (stable)
Release Date: 2015-04-17 UTC
What's New in PHPMentorsValidatorBundle 1.0.0
Namespace alias configuration
(Issue #4)
This feature allows you to add namespace aliases with configuration. To use this feature add any alias and namespace pair to phpmentors_validator.constraint.namespaces
as the following:
app/config/config.yml
:
...
phpmentors_validator:
constraint:
namespaces:
App: "AppBundle\\Validator\\Constraints\\"
...