Skip to content

Commit

Permalink
feature symfony#24392 Display orphaned events in profiler (kejwmen)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 4.1-dev branch (closes symfony#24392).

Discussion
----------

Display orphaned events in profiler

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | symfony#24347
| License       | MIT

Implements symfony#24347.

Deprecating `TraceableEventDispatcherInterface`.

Commits
-------

509f9a9 Display orphaned events in profiler
  • Loading branch information
fabpot committed Jan 19, 2018
2 parents 80ed985 + 90bbb9b commit 341200a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

4.1.0
-----

* added information about orphaned events

4.0.0
-----

Expand Down
20 changes: 20 additions & 0 deletions Resources/views/Collector/events.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,26 @@
{% endif %}
</div>
</div>

<div class="tab">
<h3 class="tab-title">Orphaned events <span class="badge">{{ collector.orphanedEvents|length }}</span></h3>
<div class="tab-content">
{% if collector.orphanedEvents is empty %}
<div class="empty">
<p>
<strong>There are no orphaned events</strong>.
</p>
<p>
All dispatched events were handled or an error occurred
when trying to collect orphaned events (in which case check the
logs to get more information).
</p>
</div>
{% else %}
{{ helper.render_table(collector.orphanedEvents) }}
{% endif %}
</div>
</div>
</div>
{% endif %}
{% endblock %}
Expand Down

0 comments on commit 341200a

Please sign in to comment.