8000 merged branch dlsniper/wdt-session-metadata (PR #4428) · ostrolucky/symfony@107b252 · GitHub
[go: up one dir, main page]

Skip to content

Commit 107b252

Browse files
committed
merged branch dlsniper/wdt-session-metadata (PR symfony#4428)
Commits ------- 8dd2af7 Added Session Metadata info to the Request section of the WDT Discussion ---------- [WebProfilerBundle] Added Session Metadata info to the Request section of the WDT Bug fix: no Feature addition: yes Backwards compatibility break: no Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/dlsniper/symfony.png?branch=wdt-session-metadata)](http://travis-ci.org/dlsniper/symfony) Fixes the following tickets: symfony#4181 Todo: ~ License of the code: MIT Documentation PR: ~ This PR adds some session metadata available into the WDT (Created, Last used, Lifetime specifically). If you'd like to see more info then let me know. --------------------------------------------------------------------------- by travisbot at 2012-05-26T21:11:56Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1443801) (merged 9b0b4383 into 9e95199). --------------------------------------------------------------------------- by travisbot at 2012-05-26T21:24:27Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1443856) (merged 31858319 into 9e95199). --------------------------------------------------------------------------- by drak at 2012-05-27T00:48:37Z Nice addition. --------------------------------------------------------------------------- by dlsniper at 2012-05-31T21:21:37Z @Drak While using this patch on a production application I've noticed that the `$request->hasSession()` section will fail to recognize that there's no session anymore in the app if I'm not using the auto-start feature. I'm using the latest master branch, updated today around 12:00 UTC. Clearly this is not the right place to discuss that there's a problem with ::hasSession() but I wanted to ask someone else for an opinion before creating the issue/fix for it. --------------------------------------------------------------------------- by stof at 2012-06-09T10:14:05Z @dlsniper create an ticket for it, and it will become the best place to discuss it :) --------------------------------------------------------------------------- by dlsniper at 2012-06-09T10:42:58Z Ok, but then can this be merged meanwhile? --------------------------------------------------------------------------- by stof at 2012-06-09T10:58:39Z @fabpot 👍 --------------------------------------------------------------------------- by dlsniper at 2012-06-09T17:36:24Z I've opened symfony#4529 to address the issue seen in the comment.
2 parents 30c1cca + 6ed2909 commit 107b252

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Resources/views/Collector/request.html.twig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
<b>Route name</b>
3535
<span>{{ request_route }}</span>
3636
</div>
37+
<div class="sf-toolbar-info-piece">
38+
<b>Has session</b>
39+
<span>{% if collector.sessionmetadata|length %}yes{% else %}no{% endif %}</span>
40+
</div>
3741
{% endspaceless %}
3842
{% endset %}
3943
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %}
@@ -109,6 +113,16 @@
109113

110114
{% include 'WebProfilerBundle:Profiler:bag.html.twig' with { 'bag': collector.responseheaders } only %}
111115

116+
<h2>Session Metadata</h2>
117+
118+
{% if collector.sessionmetadata|length %}
119+
{% include 'WebProfilerBundle:Profiler:table.html.twig' with { 'data': collector.sessionmetadata } only %}
120+
{% else %}
121+
<p>
122+
<em>No session metadata</em>
123+
</p>
124+
{% endif %}
125+
112126
<h2>Session Attributes</h2>
113127

114128
{% if collector.sessionattributes|length %}

0 commit comments

Comments
 (0)
0