Removed the "Delete profiles" action from the web profiler sidebar

This commit is contained in:
Javier Eguiluz 2015-09-27 15:39:02 +02:00
parent 58ed0762e9
commit 8c47eb9be6
4 changed files with 2 additions and 32 deletions

View File

@ -125,6 +125,8 @@ class ProfilerController
*/
public function purgeAction()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
if (null === $this->profiler) {
throw new NotFoundHttpException('The profiler must be enabled.');
}

View File

@ -1,7 +0,0 @@
{% if token is not empty %}
<div id="sidebar-admin">
<h3>Administration tools</h3>
<a href="{{ path('_profiler_purge', { token: token }) }}">Delete all profiles</a>
</div>
{% endif %}

View File

@ -79,10 +79,6 @@
{% endfor %}
</ul>
{% endif %}
<div class="module">
{{ include('@WebProfiler/Profiler/admin.html.twig', { token: token|default('') }, with_context = false) }}
</div>
</div>
</div>
</div>

View File

@ -486,32 +486,15 @@ tr.status-warning td {
padding-bottom: 99999px; {# needed for 'same-height columns' trick #}
width: 220px;
}
#sidebar a {
color: #ADD8E6;
}
#sidebar .module {
padding: 10px;
width: 220px;
}
#sidebar .module h3 {
color: #999;
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
margin-bottom: 10px;
}
{# Sidebar Shortcuts
------------------------------------------------------------------------- #}
#sidebar #sidebar-shortcuts {
background: #333;
/* needed to prevent visual issues due to the pure CSS slideToggle() */
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
width: 220px;
}
#sidebar #sidebar-shortcuts .shortcuts {
@ -567,10 +550,6 @@ tr.status-warning td {
float: right;
margin-right: 10px;
}
#sidebar-admin a {
font-size: 14px;
margin-left: 10px;
}
{# Sidebar Menu
------------------------------------------------------------------------- #}