- JSONValidator should just pass the json serializable validation result through
- Fix events not being validated correctly when attribute injectors are used
- Events are no longer validated when received, only upon dispatch
- Fix events dispatching when validation fails & exceptions are suppressed
- 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
- Add support for translate, listen expr & validation failure callbacks
- Bump up to superbalist/php-pubsub ^2.0
- Add new dispatchBatch method to EventManager for dispatching multiple events at once
- Add
setAttribute
method toEventInterface
- Add support for "attribute injectors" with
AttributeInjectorInterface
- Bundle
DateAttributeInjector
,GenericAttributeInjector
,HostnameAttributeInjector
,Uuid4AttributeInjector
- Add new
addAttributeInjector
andgetAttributeInjectors
methods toEventManager
- Initial release