Skip to content

Releases: Superbalist/php-event-pubsub

4.0.3

14 Sep 14:59
Compare
Choose a tag to compare

Changelog

4.0.3 - 2017-09-14

  • JSONValidator should just pass the json serializable validation result through

4.0.2

20 Jul 06:22
Compare
Choose a tag to compare

Changelog

4.0.2 - 2017-07-20

  • Fix events not being validated correctly when attribute injectors are used
  • Events are no longer validated when received, only upon dispatch

4.0.1

18 Jul 08:34
Compare
Choose a tag to compare

Changelog

4.0.1 - 2017-07-18

  • Fix events dispatching when validation fails & exceptions are suppressed

4.0.0

17 Jul 08:38
Compare
Choose a tag to compare

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

3.0.1

17 Jul 07:14
Compare
Choose a tag to compare

3.0.1 - 2017-07-17

  • Add support for translate, listen expr & validation failure callbacks

3.0.0

16 May 11:58
Compare
Choose a tag to compare

Changelog

3.0.0 - 2017-05-16

  • Bump up to superbalist/php-pubsub ^2.0
  • Add new dispatchBatch method to EventManager for dispatching multiple events at once

2.0.0

01 Feb 18:32
Compare
Choose a tag to compare

Changelog

2.0.0 - 2017-02-01

  • Add setAttribute method to EventInterface
  • Add support for "attribute injectors" with AttributeInjectorInterface
  • Bundle DateAttributeInjector, GenericAttributeInjector, HostnameAttributeInjector, Uuid4AttributeInjector
  • Add new addAttributeInjector and getAttributeInjectors methods to EventManager

1.0.0

27 Jan 12:39
Compare
Choose a tag to compare

Changelog

1.0.0 - 2017-01-27

  • Initial release