Skip to content

Releases: phpmentors-jp/validator-bundle

PHPMentorsValidatorBundle 1.3.0 (stable)

22 May 14:20
v1.3.0
Compare
Choose a tag to compare

What's New in PHPMentorsValidatorBundle 1.3.0

Symfony 3 / 4 support

(@iteman, #13)

Symfony 3 and 4 have been supported.

As of this version, the following dependency versions are required:

  • Symfony 2.8.0 or 3.0.0 or 4.0.0 or greater

PHPMentorsValidatorBundle 1.2.0 (stable)

27 Apr 07:14
v1.2.0
Compare
Choose a tag to compare

Release Date: 2015-04-27 UTC

What's New in PHPMentorsValidatorBundle 1.2.0

Range constraint

(@iteman, Issue #11)

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)

13 Jul 03:40
v1.1.0
Compare
Choose a tag to compare

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:

  • A Symfony\Component\Validator\Exception\ValidatorException is raised when compiling the container with FOSUserBundle. (Issue #6)
  • The class annotation does not support for ServiceCallback. (Issue #5)

PHPMentorsValidatorBundle 1.0.0 (stable)

17 Apr 03:10
v1.0.0
Compare
Choose a tag to compare

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\\"
...