Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[EventDispatcher] Fix TraceableEventDispatcher FC/BC layer#31254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
yceruto left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Yes, this solvesmy issue, thanks!
0bef732 to1add058Compareadef564 tofd24888Comparenicolas-grekas commentedApr 26, 2019
See alternative in#31258 |
fd24888 to6a78e46Compare| }; | ||
| }else { | ||
| $closure =$listenerinstanceof \Closure ?$listener : \Closure::fromCallable($listener); | ||
| $closure =$listenerinstanceof \Closure||$listenerinstanceof WrappedListener?$listener : \Closure::fromCallable($listener); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
WrappedListener handles this optimization internally
chalasr commentedApr 26, 2019
Remaining issue fixed, ready. |
a14a4ed toc34910eComparexabbuh commentedApr 27, 2019
What about also adding an assertion to the test which checks that the event instance passed to the listener actually is an instance of the |
nicolas-grekas commentedApr 27, 2019
implementing this interface is not a requirement |
c34910e toc5b3b34Comparechalasr commentedApr 27, 2019
Assertion added to ensure that the event passed to the listener is the same as the dispatched one (and not a proxy), also rebased to make the CI green. |
nicolas-grekas commentedApr 27, 2019
Thank you@chalasr. |
… (chalasr)This PR was merged into the 4.3-dev branch.Discussion----------[EventDispatcher] Fix TraceableEventDispatcher FC/BC layer| Q | A| ------------- | ---| Branch? | master| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | n/a| Tests pass? | yes| Fixed tickets |#31221| License | MIT| Doc PR | n/aalso renames `WrappedEvent` to `LegacyEventProxy`Commits-------c5b3b34 [EventDispatcher] Fix TraceableEventDispatcher FC/BC layer
Uh oh!
There was an error while loading.Please reload this page.
also renames
WrappedEventtoLegacyEventProxy