You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.7 KiB

3 years ago
  1. CHANGELOG
  2. =========
  3. 5.3
  4. ---
  5. * Add `#[AsEventListener]` attribute for declaring listeners on PHP 8
  6. 5.1.0
  7. -----
  8. * The `LegacyEventDispatcherProxy` class has been deprecated.
  9. * Added an optional `dispatcher` attribute to the listener and subscriber tags in `RegisterListenerPass`.
  10. 5.0.0
  11. -----
  12. * The signature of the `EventDispatcherInterface::dispatch()` method has been changed to `dispatch($event, string $eventName = null): object`.
  13. * The `Event` class has been removed in favor of `Symfony\Contracts\EventDispatcher\Event`.
  14. * The `TraceableEventDispatcherInterface` has been removed.
  15. * The `WrappedListener` class is now final.
  16. 4.4.0
  17. -----
  18. * `AddEventAliasesPass` has been added, allowing applications and bundles to extend the event alias mapping used by `RegisterListenersPass`.
  19. * Made the `event` attribute of the `kernel.event_listener` tag optional for FQCN events.
  20. 4.3.0
  21. -----
  22. * The signature of the `EventDispatcherInterface::dispatch()` method should be updated to `dispatch($event, string $eventName = null)`, not doing so is deprecated
  23. * deprecated the `Event` class, use `Symfony\Contracts\EventDispatcher\Event` instead
  24. 4.1.0
  25. -----
  26. * added support for invokable event listeners tagged with `kernel.event_listener` by default
  27. * The `TraceableEventDispatcher::getOrphanedEvents()` method has been added.
  28. * The `TraceableEventDispatcherInterface` has been deprecated.
  29. 4.0.0
  30. -----
  31. * removed the `ContainerAwareEventDispatcher` class
  32. * added the `reset()` method to the `TraceableEventDispatcherInterface`
  33. 3.4.0
  34. -----
  35. * Implementing `TraceableEventDispatcherInterface` without the `reset()` method has been deprecated.
  36. 3.3.0
  37. -----
  38. * The ContainerAwareEventDispatcher class has been deprecated. Use EventDispatcher with closure factories instead.
  39. 3.0.0
  40. -----
  41. * The method `getListenerPriority($eventName, $listener)` has been added to the
  42. `EventDispatcherInterface`.
  43. * The methods `Event::setDispatcher()`, `Event::getDispatcher()`, `Event::setName()`
  44. and `Event::getName()` have been removed.
  45. The event dispatcher and the event name are passed to the listener call.
  46. 2.5.0
  47. -----
  48. * added Debug\TraceableEventDispatcher (originally in HttpKernel)
  49. * changed Debug\TraceableEventDispatcherInterface to extend EventDispatcherInterface
  50. * added RegisterListenersPass (originally in HttpKernel)
  51. 2.1.0
  52. -----
  53. * added TraceableEventDispatcherInterface
  54. * added ContainerAwareEventDispatcher
  55. * added a reference to the EventDispatcher on the Event
  56. * added a reference to the Event name on the event
  57. * added fluid interface to the dispatch() method which now returns the Event
  58. object
  59. * added GenericEvent event class
  60. * added the possibility for subscribers to subscribe several times for the
  61. same event
  62. * added ImmutableEventDispatcher