Skip to content

Commit 00d2823

Browse files
raziel057fabpot
authored andcommitted
Improve comments in ProfilerController
1 parent 7adee1a commit 00d2823

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

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

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ class ProfilerController
3434
private $templates;
3535
private $toolbarPosition;
3636

37+
/**
38+
* Constructor.
39+
*
40+
* @param UrlGeneratorInterface $generator The Url Generator
41+
* @param Profiler $profiler The profiler
42+
* @param \Twig_Environment $twig The twig environment
43+
* @param array $templates The templates
44+
* @param string $toolbarPosition The toolbar position (top, bottom, normal, or null -- use the configuration)
45+
*/
3746
public function __construct(UrlGeneratorInterface $generator, Profiler $profiler, \Twig_Environment $twig, array $templates, $toolbarPosition = 'normal')
3847
{
3948
$this->generator = $generator;
@@ -46,7 +55,7 @@ public function __construct(UrlGeneratorInterface $generator, Profiler $profiler
4655
/**
4756
* Renders a profiler panel for the given token.
4857
*
49-
* @param Request $request The HTTP request
58+
* @param Request $request The current HTTP request
5059
* @param string $token The profiler token
5160
*
5261
* @return Response A Response instance
@@ -115,7 +124,7 @@ public function purgeAction()
115124
/**
116125
* Imports token data.
117126
*
118-
* @param Request $request
127+
* @param Request $request The current HTTP Request
119128
*
120129
* @return Response A Response instance
121130
*/
@@ -139,7 +148,7 @@ public function importAction(Request $request)
139148
/**
140149
* Displays information page.
141150
*
142-
* @param string $about
151+
* @param string $about The about message
143152
*
144153
* @return Response A Response instance
145154
*/
@@ -155,7 +164,7 @@ public function infoAction($about)
155164
/**
156165
* Renders the Web Debug Toolbar.
157166
*
158-
* @param Request $request The current Request
167+
* @param Request $request The current HTTP Request
159168
* @param string $token The profiler token
160169
* @param string $position The toolbar position (top, bottom, normal, or null -- use the configuration)
161170
*
@@ -203,7 +212,7 @@ public function toolbarAction(Request $request, $token, $position = null)
203212
/**
204213
* Renders the profiler search bar.
205214
*
206-
* @param Request $request The current Request
215+
* @param Request $request The current HTTP Request
207216
*
208217
* @return Response A Response instance
209218
*/
@@ -237,8 +246,8 @@ public function searchBarAction(Request $request)
237246
/**
238247
* Search results.
239248
*
240-
* @param Request $request The current Request
241-
* @param string $token The token
249+
* @param Request $request The current HTTP Request
250+
* @param string $token The token
242251
*
243252
* @return Response A Response instance
244253
*/
@@ -268,7 +277,7 @@ public function searchResultsAction(Request $request, $token)
268277
/**
269278
* Narrow the search bar.
270279
*
271-
* @param Request $request The current Request
280+
* @param Request $request The current HTTP Request
272281
*
273282
* @return Response A Response instance
274283
*/
@@ -321,6 +330,11 @@ public function phpinfoAction()
321330
return new Response($phpinfo);
322331
}
323332

333+
/**
334+
* Gets the Template Manager.
335+
*
336+
* @return TemplateManager The Template Manager
337+
*/
324338
protected function getTemplateManager()
325339
{
326340
if (null === $this->templateManager) {

0 commit comments

Comments
 (0)