Skip to content

Commit 48e90e3

Browse files
Merge branch '2.8' into 3.2
* 2.8: [WebProfilerBundle] Drop dead code
2 parents ece42c5 + 3d8959f commit 48e90e3

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ProfilerController
4747
* @param string $toolbarPosition The toolbar position (top, bottom, normal, or null -- use the configuration)
4848
* @param string $baseDir The project root directory
4949
*/
50-
public function __construct(UrlGeneratorInterface $generator, Profiler $profiler = null, \Twig_Environment $twig, array $templates, $toolbarPosition = 'normal', ContentSecurityPolicyHandler $cspHandler = null, $baseDir = null)
50+
public function __construct(UrlGeneratorInterface $generator, Profiler $profiler = null, \Twig_Environment $twig, array $templates, $toolbarPosition = 'bottom', ContentSecurityPolicyHandler $cspHandler = null, $baseDir = null)
5151
{
5252
$this->generator = $generator;
5353
$this->profiler = $profiler;
Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<!-- START of Symfony Web Debug Toolbar -->
2-
{% if 'normal' != position %}
3-
<div id="sfMiniToolbar-{{ token }}" class="sf-minitoolbar" data-no-turbolink>
4-
<a href="#" title="Show Symfony toolbar" tabindex="-1" id="sfToolbarMiniToggler-{{ token }}" accesskey="D">
5-
{{ include('@WebProfiler/Icon/symfony.svg') }}
6-
</a>
7-
</div>
8-
<style{% if csp_style_nonce %} nonce="{{ csp_style_nonce }}"{% endif %}>
9-
{{ include('@WebProfiler/Profiler/toolbar.css.twig', { 'position': position, 'floatable': true }) }}
10-
</style>
11-
<div id="sfToolbarClearer-{{ token }}" class="sf-toolbar-clearer"></div>
12-
{% endif %}
2+
<div id="sfMiniToolbar-{{ token }}" class="sf-minitoolbar" data-no-turbolink>
3+
<a href="#" title="Show Symfony toolbar" tabindex="-1" id="sfToolbarMiniToggler-{{ token }}" accesskey="D">
4+
{{ include('@WebProfiler/Icon/symfony.svg') }}
5+
</a>
6+
</div>
7+
<style{% if csp_style_nonce %} nonce="{{ csp_style_nonce }}"{% endif %}>
8+
{{ include('@WebProfiler/Profiler/toolbar.css.twig', { 'position': position, 'floatable': true }) }}
9+
</style>
10+
<div id="sfToolbarClearer-{{ token }}" class="sf-toolbar-clearer"></div>
1311

1412
<div id="sfToolbarMainContent-{{ token }}" class="sf-toolbarreset clear-fix" data-no-turbolink>
1513
{% for name, template in templates %}
@@ -28,10 +26,8 @@
2826
{% endif %}
2927
{% endfor %}
3028

31-
{% if 'normal' != position %}
32-
<a class="hide-button" id="sfToolbarHideButton-{{ token }}" title="Close Toolbar" tabindex="-1" accesskey="D">
33-
{{ include('@WebProfiler/Icon/close.svg') }}
34-
</a>
35-
{% endif %}
29+
<a class="hide-button" id="sfToolbarHideButton-{{ token }}" title="Close Toolbar" tabindex="-1" accesskey="D">
30+
{{ include('@WebProfiler/Icon/close.svg') }}
31+
</a>
3632
</div>
3733
<!-- END of Symfony Web Debug Toolbar -->

0 commit comments

Comments
 (0)