8000 Slightly re-design the debugging toolbar. by shiroyuki · Pull Request #3833 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Slightly re-design the debugging toolbar. #3833

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

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0c9b2d4
use SecurityContextInterface instead of SecurityContext
Mar 9, 2012
5ede111
merged branch pminnieur/2.0 (PR #3537)
fabpot Mar 23, 2012
86a3512
[FrameworkBundle] Add support for full URLs to redirect controller
Seldaek Mar 25, 2012
42b8c7a
merged branch Seldaek/redirect (PR #3693)
fabpot Mar 26, 2012
15dd17e
Simplified CONTENT_ headers retrieval
jalliot Mar 26, 2012
51eac4b
merged branch jalliot/header-bag (PR #3702)
fabpot Mar 27, 2012
e4f3fd9
Fixed example code.
clemens-tolboom Mar 29, 2012
d12e398
merged branch clemens-tolboom/2.0 (PR #3725)
fabpot Mar 29, 2012
24a0d0a
[DependencyInjection] Support Yaml calls without arguments
igorw Mar 31, 2012
a10fee1
merged branch igorw/dic-yaml-without-args (PR #3747)
fabpot Apr 1, 2012
032ab94
Prepare for modifying toolbar.
Apr 3, 2012
fd1ea69
[Security] [HttpDigest] Fixes a configuration error caused by an inva…
Apr 4, 2012
eb6a26f
8000 merged branch ruimarinho/http_digest (PR #3778)
fabpot Apr 4, 2012
e4ebffb
Revert "merged branch ruimarinho/http_digest (PR #3778)"
fabpot Apr 4, 2012
fc41d4f
[Security] [HttpDigest] Fixes a configuration error caused by an inva…
Apr 4, 2012
f7647f9
[Routing] improved exception message when giving an invalid route name.
Apr 6, 2012
04ae7cc
[Routing] fixed exception message.
Apr 6, 2012
97f7b29
[Console] Avoid outputing \r's in exception messages
Seldaek Apr 6, 2012
595cc11
[Console] Wrap exception messages to the terminal width to avoid ugly…
Seldaek Apr 6, 2012
c140386
merged branch ruimarinho/http_digest (PR #3781)
fabpot Apr 6, 2012
f2398f6
merged branch Seldaek/console_ex_20 (PR #3802)
fabpot Apr 6, 2012
1387415
merged branch hhamon/route_collection_better_exception_message (PR #3…
fabpot Apr 6, 2012
cfd993b
Merge branch '2.0' of http://github.com/symfony/symfony into 2.0
shiroyuki Apr 6, 2012
8a2b115
[Console] Mock terminal size to prevent formatting errors on small te…
Seldaek Apr 6, 2012
7ce22f0
[Console] Add docblocks
Seldaek Apr 6, 2012
38e17c2
merged branch Seldaek/termwidth (PR #3805)
fabpot Apr 6, 2012
6bd64b5
Reverted the position.
shiroyuki Apr 7, 2012
420e00b
Revamped the profiler toolbar in both embedded mode and normal.
shiroyuki Apr 7, 2012
3a202a2
Merge branch '2.0' of http://github.com/symfony/symfony into 2.0
shiroyuki Apr 7, 2012
d6a2938
minor update to the toolbar.
shiroyuki Apr 8, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ public function urlRedirectAction($path, $permanent = false, $scheme = null, $ht
return new Response(null, 410);
}

$statusCode = $permanent ? 301 : 302;

// redirect if the path is a full URL
if (parse_url($path, PHP_URL_SCHEME)) {
return new RedirectResponse($path, $statusCode);
}

$request = $this->container->get('request');
if (null === $scheme) {
$scheme = $request->getScheme();
Expand All @@ -89,6 +96,6 @@ public function urlRedirectAction($path, $permanent = false, $scheme = null, $ht

$url = $scheme.'://'.$request->getHost().$port.$request->getBaseUrl().$path.$qs;

return new RedirectResponse($url, $permanent ? 301 : 302);
return new RedirectResponse($url, $statusCode);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,22 @@ public function provider()

public function testEmptyPath()
{
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');

$controller = new RedirectController();
$controller->setContainer($container);

$returnResponse = $controller->urlRedirectAction('');

$this->assertInstanceOf('\Symfony\Component\HttpFoundation\Response', $returnResponse);

$this->assertEquals(410, $returnResponse->getStatusCode());
}

public function testFullURL()
{
$controller = new RedirectController();
$returnResponse = $controller->urlRedirectAction('http://foo.bar/');

$this->assertInstanceOf('\Symfony\Component\HttpFoundation\Response', $returnResponse);

$this->assertEquals('http://foo.bar/', $returnResponse->headers->get('Location'));
$this->assertEquals(302, $returnResponse->getStatusCode());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function addConfiguration(NodeDefinition $node)
->children()
->scalarNode('provider')->end()
->scalarNode('realm')->defaultValue('Secured Area')->end()
->scalarNode('key')->cannotBeEmpty()->end()
->scalarNode('key')->isRequired()->cannotBeEmpty()->end()
->end()
;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
'simple' => array('pattern' => '/login', 'security' => false),
'secure' => array('stateless' => true,
'http_basic' => true,
'http_digest' => true,
'http_digest' => array('key' => 'TheKey'),
'form_login' => true,
'anonymous' => true,
'switch_user' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<firewall name="secure" stateless="true">
<http-basic />
<http-digest />
<http-digest key="TheKey" />
<form-login />
<anonymous />
<switch-user />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ security:
secure:
stateless: true
http_basic: true
http_digest: true
http_digest:
key: TheKey
form_login: true
anonymous: true
switch_user: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ build: 56
*/
.sf-toolbarreset div,.sf-toolbarreset dl,.sf-toolbarreset dt,.sf-toolbarreset dd,.sf-toolbarreset ul,.sf-toolbarreset ol,.sf-toolbarreset li,.sf-toolbarreset h1,.sf-toolbarreset h2,.sf-toolbarreset h3,.sf-toolbarreset h4,.sf-toolbarreset h5,.sf-toolbarreset h6,.sf-toolbarreset pre,.sf-toolbarreset code,.sf-toolbarreset form,.sf-toolbarreset fieldset,.sf-toolbarreset legend,.sf-toolbarreset input,.sf-toolbarreset textarea,.sf-toolbarreset p,.sf-toolbarreset blockquote,.sf-toolbarreset th,.sf-toolbarreset td{margin:0;padding:0;}.sf-toolbarreset table{border-collapse:collapse;border-spacing:0;}.sf-toolbarreset fieldset,.sf-toolbarreset img{border:0;}.sf-toolbarreset address,.sf-toolbarreset caption,.sf-toolbarreset cite,.sf-toolbarreset code,.sf-toolbarreset dfn,.sf-toolbarreset em,.sf-toolbarreset strong,.sf-toolbarreset th,.sf-toolbarreset var{font-style:normal;font-weight:normal;}.sf-toolbarreset li{list-style:none;}.sf-toolbarreset caption,.sf-toolbarreset th{text-align:left;}.sf-toolbarreset h1,.sf-toolbarreset h2,.sf-toolbarreset h3,.sf-toolbarreset h4,.sf-toolbarreset h5,.sf-toolbarreset h6{font-size:100%;font-weight:normal;}.sf-toolbarreset q:before,.sf-toolbarreset q:after{content:'';}.sf-toolbarreset abbr,.sf-toolbarreset acronym{border:0;font-variant:normal;}.sf-toolbarreset sup{vertical-align:text-top;}.sf-toolbarreset sub{vertical-align:text-bottom;}.sf-toolbarreset input,.sf-toolbarreset textarea,.sf-toolbarreset select{font-family:inherit;font-size:inherit;font-weight:inherit;}.sf-toolbarreset input,.sf-toolbarreset textarea,.sf-toolbarreset select{*font-size:100%;}.sf-toolbarreset legend{color:#000;}

/*
Style for the toolbar in the profiler page.
*/

.sf-toolbarreset {
background: #cbcbcb;
background-image: -moz-linear-gradient(-90deg, #e8e8e8, #cbcbcb);
Expand All @@ -20,9 +24,70 @@ build: 56
margin: 0;
font: 11px Verdana, Arial, sans-serif;
color: #000;
min-height: 38px;
}

.sf-toolbarreset abbr {
border-bottom: 1px dotted #000000;
cursor: help;
}

.sf-toolbar-block {
float: left;
white-space: nowrap;
color: #2f2f2f;
display: inline-block;
min-height: 24px;
min-width: 28px;
text-align: center;
border-right: 1px solid #cdcdcd;
padding: 5px 4px;
}

.sf-toolbar-block img {
border-width: 0;
vertical-align: middle;
margin: 0;
padding: 0;
}

.sf-toolbar-block-info {
-moz-transition: all ease 200ms;
-webkit-transition: all ease 200ms;
margin-left: -5px;
top: 38px;
display: none;
padding: 10px;
position: absolute;
background-color: rgba(255, 255, 255, 0.95);
border-left: 1px solid #000;
border-bottom: 1px solid #cdcdcd;
border-right: 1px solid #cdcdcd;
}

.sf-toolbar-block-info a, .sf-toolbar-block-info a:link {
color: #215498;
}

.sf-toolbar-block-info-delimiter {
margin: 0 2px;
padding: 0;
color: #ccc;
}

.sf-toolbar-block-icon {
text-decoration: none;
margin: 0;
padding: 0;
display: inline-block;
}

.sf-toolbar-block:hover {
background-color: #fff;
border-left: 1px solid #000;
margin-left: -1px;
}

.sf-toolbar-block:hover .sf-toolbar-block-info {
display: block;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,55 @@
{% if verbose %}
{% set text %}
{% spaceless %}
<span>PHP {{ collector.phpversion }}</span>
<span style="margin: 0; padding: 0; color: #979696;">|</span>
<span style="color: {{ collector.hasxdebug ? '#759e1a' : '#a33' }}">xdebug</span>
<span style="margin: 0; padding: 0; color: #979696">|</span>
<span style="color: {{ collector.hasaccelerator ? '#759e1a' : '#a33' }}">accel</span>
<div style="
text-align:center;
width:28px;
height:26px;
padding-top: 2px;
background-color:#2f2f2f;
border-radius:14px;
display:inline-block;
color: #fff;
font-weight:400;
font-size: 18px;
font-family: 'Georgia', serif;
font-style: italic;
cursor: default;
overflow:hidden;
">P</div>
<span class="sf-toolbar-block-info">
<span>PHP {{ collector.phpversion }}</span>
<span class="sf-toolbar-block-info-delimiter">|</span>
<span style="color: {{ collector.hasxdebug ? '#759e1a' : '#a33' }}">xdebug</span>
<span class="sf-toolbar-block-info-delimiter">|</span>
<span style="color: {{ collector.hasaccelerator ? '#759e1a' : '#a33' }}">accel</span>
</span>
{% endspaceless %}
{% endset %}
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': false, 'icon': '' } %}
{% endif %}

{% set icon %}
<img width="21" height="28" alt="Environment" style="border-width: 0; vertical-align: middle; margin-right: 5px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAcCAYAAACOGPReAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAZNJREFUeNpi/P//PwO1ARMDDcCooWDA4+npeRiEQWw0NTweHh4nQZhYORYoLf39+3cbGBuIbyJplPnx44cZjA3ENwjJwQzljoqKOghjo7lGBAcbBLiA+g7B2DBBRqCXj3/79s0CRSUX14lt27a5AplfgNgBCPaDxA8cOOAIokBe9fLy2o1LHxO6BAhAxWTwxIUMPn0seDTCvPotLi7uJIyNIxhQ9OEzVADoRZSgWbRo0UmoF1vx6GPBl06l8XhRmtzEL0KmHF5DWcmUo1E21dLSeo0uCBX7jUffb3z6GIGFdC2QYXPp0iVw4Ovp6T0FUkeA+BUw0c/AZiIwE2QAKTEc+laBktQqIL6al5e3FqqhDsQHYhU8Ln0CzVnY9D1hghYeD5E0PISKfcDjxQ949H2FJX5eJEkY+820adMm4/DiGzz6GFgIeBFX0DzBF/swQ/8oKCi8h7Gh9FeodzikpKSeQ8XuopW12PQxMEKraE0gDoSKrQfi60gaSZaDGQqqCiShks+h5Si8yiBVjnFkNyYAAgwAQGPBFLF65f4AAAAASUVORK5CYII="/>
<img width="21" height="28" alt="Environment" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAcCAYAAACOGPReAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAZNJREFUeNpi/P//PwO1ARMDDcCooWDA4+npeRiEQWw0NTweHh4nQZhYORYoLf39+3cbGBuIbyJplPnx44cZjA3ENwjJwQzljoqKOghjo7lGBAcbBLiA+g7B2DBBRqCXj3/79s0CRSUX14lt27a5AplfgNgBCPaDxA8cOOAIokBe9fLy2o1LHxO6BAhAxWTwxIUMPn0seDTCvPotLi7uJIyNIxhQ9OEzVADoRZSgWbRo0UmoF1vx6GPBl06l8XhRmtzEL0KmHF5DWcmUo1E21dLSeo0uCBX7jUffb3z6GIGFdC2QYXPp0iVw4Ovp6T0FUkeA+BUw0c/AZiIwE2QAKTEc+laBktQqIL6al5e3FqqhDsQHYhU8Ln0CzVnY9D1hghYeD5E0PISKfcDjxQ949H2FJX5eJEkY+820adMm4/DiGzz6GFgIeBFX0DzBF/swQ/8oKCi8h7Gh9FeodzikpKSeQ8XuopW12PQxMEKraE0gDoSKrQfi60gaSZaDGQqqCiShks+h5Si8yiBVjnFkNyYAAgwAQGPBFLF65f4AAAAASUVORK5CYII="/>
{% endset %}
{% set text %}
{% spaceless %}
{% if verbose %}
<span>{{ collector.appname }}</span>
<span style="margin: 0; padding: 0; color: #979696;">|</span>
<span>{{ collector.env }}</span>
<span style="margin: 0; padding: 0; color: #979696;">|</span>
<span>{{ collector.debug ? 'debug' : 'no-debug' }}</span>
<span style="margin: 0; padding: 0; color: #979696;">|</span>
{% endif %}
<span>
{% if profiler_url %}
<a style="color: #2f2f2f" href="{{ profiler_url }}">{{ collector.token }}</a>
{% else %}
{{ collector.token }}
<span class="sf-toolbar-block-info">
{% if verbose %}
<span>{{ collector.appname }}</span>
<span class="sf-toolbar-block-info-delimiter">|</span>
<span>{{ collector.env }}</span>
<span class="sf-toolbar-block-info-delimiter">|</span>
<span>{{ collector.debug ? 'debug' : 'no-debug' }}</span>
<span class="sf-toolbar-block-info-delimiter">|</span>
{% endif %}
<span>
{% if profiler_url %}
<a href="{{ profiler_url }}">{{ collector.token }}</a>
{% else %}
{{ collector.token }}
{% endif %}
</span>
</span>
{% endspaceless %}
{% endset %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

{% block toolbar %}
{% set icon %}
<img width="13" height="28" alt="Memory Usage" style="vertical-align: middle; margin-right: 5px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAcCAYAAAC6YTVCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJBJREFUeNpi/P//PwOpgImBDDAcNbE4ODiAg+/AgQOC586d+4BLoZGRkQBQ7Xt0mxQIWKCAzXkCBDQJDEBAIHOKiooicSkEBtTz0WQ0xFI5Mqevr285HrUOMAajvb09ySULk5+f3w1SNIDUMwKLsAIg256IrAECoEx6EKQJlLkkgJiDCE0/gPgF4+AuLAECDAAolCeEmdURAgAAAABJRU5ErkJggg=="/>
<img width="13" height="28" alt="Memory Usage" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAcCAYAAAC6YTVCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJBJREFUeNpi/P//PwOpgImBDDAcNbE4ODiAg+/AgQOC586d+4BLoZGRkQBQ7Xt0mxQIWKCAzXkCBDQJDEBAIHOKiooicSkEBtTz0WQ0xFI5Mqevr285HrUOMAajvb09ySULk5+f3w1SNIDUMwKLsAIg256IrAECoEx6EKQJlLkkgJiDCE0/gPgF4+AuLAECDAAolCeEmdURAgAAAABJRU5ErkJggg=="/>
{% endset %}
{% set text %}
{{ '%.0f'|format(collector.memory / 1024) }} KB
<span class="sf-toolbar-block-info">{{ '%.0f'|format(collector.memory / 1024) }} KB</span>
{% endset %}
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': false } %}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@

{% block toolbar %}
{% set icon %}
<img width="28" height="28" alt="Request" style="border-width: 0; vertical-align: middle; margin-right: 5px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABOZJREFUeNrsVmsspFcY9jHMMsxKE9sxM1SUNHRpSNR9bbQqrrNUCG1E1z3ZyIpq+dEfIiToRtomEiFi/zQrWdlZFFstDYK632ZRu2yxFNu4GzOY6fPKN80YVu1m41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Fzc/NlROQ33Kml1mC0/trIUyOWCIhtQDdAniAei5HdICnoGfu0KVlSsw+BAD0Yir6V+Pv7L5AcGMCBkTXkEDnCnPGbSL0kYuHKiBW8SlVNjC/hoeRas3zbhIisIcRzhFLMG/4vZVgFBqwyFRsJleb5Yv7/EX7T4x8BBgDTTU7fbnA/yAAAAABJRU5ErkJggg=="/>
{% endset %}
{% set text %}
<span class="sf-toolbar-block-info">
{% spaceless %}
{% if collector.controller.class is defined %}
<span>{{ collector.controller.class|abbr_class }}</span>
<span>::</span>
{% set link = collector.controller.file|file_link(collector.controller.line) %}
<span>{% if link %}<a style="color: #2f2f2f" href="{{ link }}">{{ collector.controller.method }}</a>{% else %}{{ collector.controller.method }}{% endif %}</span>
<span>{% if link %}<a href="{{ link }}">{{ collector.controller.method }}</a>{% else %}{{ collector.controller.method }}{% endif %}</span>
{% else %}
<span>{{ collector.controller }}</span>
{% endif %}
<span style="margin: 0; padding: 0; color: #979696;">|</span>
<span class="sf-toolbar-block-info-delimiter">|</span>
<span{{ not collector.route ? ' style="color:#a33"' : '' }}>{{ collector.route ? collector.route : 'NONE' }}</span>
<span style="margin: 0; padding: 0; color: #979696;">|</span>
<span style="color: {{ 200 == collector.statuscode ? '#759e1a' : '#a33' }}">{{ collector.statuscode }}</span>
<span class="sf-toolbar-block-info-delimiter">|</span>
<span style="font-weight: 700; color: {{ 200 == collector.statuscode ? '#759e1a' : '#a33' }}">{{ collector.statuscode }}</span>
{% endspaceless %}
</span>
{% endset %}
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %}
{% endblock %}
Expand Down
Loading
0