Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

4.0.0

Compare
Choose a tag to compare
@matthewgoslett matthewgoslett released this 17 Jul 08:38
· 12 commits to master since this release

Changelog

4.0.0 - 2017-07-17

  • EventValidatorInterface->validates() renamed to ->validate()
  • EventValidatorInterface->validate() now returns a ValidationResult instance instead of bool
  • The validation fail handler callback now receives a ValidationResult instead of the event and a validator
  • Events are now validated on dispatch, and will throw a ValidationException if throwValidationExceptionsOnDispatch is true (defaults to true)
  • Added new throwValidationExceptionsOnDispatch(bool) method to EventManager to suppress validation exceptions on dispatch