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