File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/Symfony/Bundle/WebProfilerBundle/Controller Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 16
16
use Symfony \Component \HttpFoundation \RedirectResponse ;
17
17
use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
18
18
use Symfony \Component \HttpFoundation \Session \Flash \AutoExpireFlashBag ;
19
+ use Symfony \Component \HttpFoundation \Request ;
19
20
20
21
/**
21
22
* ProfilerController.
@@ -27,11 +28,12 @@ class ProfilerController extends ContainerAware
27
28
/**
28
29
* Renders a profiler panel for the given token.
29
30
*
30
- * @param string $token The profiler token
31
+ * @param Request $request The HTTP request
32
+ * @param string $token The profiler token
31
33
*
32
34
* @return Response A Response instance
33
35
*/
34
- public function panelAction ($ token )
36
+ public function panelAction (Request $ request , $ token )
35
37
{
36
38
$ profiler = $ this ->container ->get ('profiler ' );
37
39
$ profiler ->disable ();
@@ -54,6 +56,7 @@ public function panelAction($token)
54
56
'panel ' => $ panel ,
55
57
'page ' => $ page ,
56
58
'templates ' => $ this ->getTemplates ($ profiler ),
59
+ 'is_ajax ' => $ request ->isXmlHttpRequest (),
57
60
));
58
61
}
59
62
You can’t perform that action at this time.
0 commit comments