Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[EventDispatcher] Clear orphaned events on reset #27913

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2018

Conversation

acasademont
Copy link
Contributor

@acasademont acasademont commented Jul 10, 2018

Q A
Branch? 4.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets NA
License MIT
Doc PR NA

When the Orphaned Events feature was added in #24392 it was forgotten to also clear them when the reset method on the TraceableEventDispatcher is called. This makes the Orphaned Events tab on the Event profiler an evergrowing list when using PHP-PM (or other event loop implementations).

@xabbuh xabbuh added this to the 4.1 milestone Jul 10, 2018
@fabpot
Copy link
Member

fabpot commented Jul 12, 2018

Thank you @acasademont.

@fabpot fabpot merged commit d3260df into symfony:4.1 Jul 12, 2018
fabpot added a commit that referenced this pull request Jul 12, 2018
…ont)

This PR was merged into the 4.1 branch.

Discussion
----------

[EventDispatcher] Clear orphaned events on reset

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | NA
| License       | MIT
| Doc PR        | NA

When the Orphaned Events feature was added in #24392 it was forgotten to also clear them when the `reset` method on the `TraceableEventDispatcher` is called. This makes the Orphaned Events tab on the Event profiler an evergrowing list when using PHP-PM (or other event loop implementations).

Commits
-------

d3260df [EventDispatcher] Clear orphaned events on TraceableEventDispatcher::reset
@fabpot fabpot mentioned this pull request Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants