Skip to content

Commit 0e988ca

Browse files
minor symfony#23453 [WebProfilerBundle] Cleanup profiler leftover (ro0NL)
This PR was merged into the 3.2 branch. Discussion ---------- [WebProfilerBundle] Cleanup profiler leftover | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Leftover from 2.8 Commits ------- 8a19795 [WebProfilerBundle] Cleanup profiler leftover
2 parents 7fd5236 + 8a19795 commit 0e988ca

File tree

3 files changed

+0
-47
lines changed

3 files changed

+0
-47
lines changed

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -128,34 +128,6 @@ public function panelAction(Request $request, $token)
128128
)), 200, array('Content-Type' => 'text/html'));
129129
}
130130

131-
/**
132-
* Displays information page.
133-
*
134-
* @param Request $request The current HTTP Request
135-
* @param string $about The about message
136-
*
137-
* @return Response A Response instance
138-
*
139-
* @throws NotFoundHttpException
140-
*/
141-
public function infoAction(Request $request, $about)
142-
{
143-
if (null === $this->profiler) {
144-
throw new NotFoundHttpException('The profiler must be enabled.');
145-
}
146-
147-
$this->profiler->disable();
148-
149-
if (null !== $this->cspHandler) {
150-
$this->cspHandler->disableCsp();
151-
}
152-
153-
return new Response($this->twig->render('@WebProfiler/Profiler/info.html.twig', array(
154-
'about' => $about,
155-
'request' => $request,
156-
)), 200, array('Content-Type' => 'text/html'));
157-
}
158-
159131
/**
160132
* Renders the Web Debug Toolbar.
161133
*

src/Symfony/Bundle/WebProfilerBundle/Resources/config/routing/profiler.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
<default key="_controller">web_profiler.controller.profiler:searchBarAction</default>
1717
</route>
1818

19-
<route id="_profiler_info" path="/info/{about}">
20-
<default key="_controller">web_profiler.controller.profiler:infoAction</default>
21-
</route>
22-
2319
<route id="_profiler_phpinfo" path="/phpinfo">
2420
<default key="_controller">web_profiler.controller.profiler:phpinfoAction</default>
2521
</route>

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/info.html.twig

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
22

33
{% set messages = {
4-
'purge' : {
5-
status: 'success',
6-
title: 'The profiler database was purged successfully',
7-
message: 'Now you need to browse some pages with the Symfony Profiler enabled to collect data.'
8-
},
94
'no_token' : {
105
status: 'error',
116
title: (token|default('') == 'latest') ? 'There are no profiles' : 'Token not found',
127
message: (token|default('') == 'latest') ? 'No profiles found in the database.' : 'Token "' ~ token|default('') ~ '" was not found in the database.'
13-
},
14-
'upload_error' : {
15-
status: 'error',
16-
title: 'A problem occurred when uploading the data',
17-
message: 'No file given or the file was not uploaded successfully.'
18-
},
19-
'already_exists' : {
20-
status: 'error',
21-
title: 'A problem occurred when uploading the data',
22-
message: 'The token already exists in the database.'
238
}
249
} %}
2510

0 commit comments

Comments
 (0)