Skip to content

0.11.0

Compare
Choose a tag to compare
@odan odan released this 18 Jun 21:23
· 47 commits to master since this release

Breaking Changes

  • Replaced collectors with converters
    • To convert CakePHP errors into a ValidationResult use this: $validationResult = CakeValidationConverter::createValidationResult($validator->validate($formData));
  • Renamed method ValidationResult::isFailed() to ValidationResult::fails()
  • Renamed ValidationResult::isSuccess() to ValidationResult::success()
  • Set ValidationException default error code from 0 to 422

Added

  • Added CakeValidationConverter as CakePHP validator converter
  • Add symfony validator support. See SymfonyValidationConverter.