Skip to content

Commit

Permalink
[WebProfilerBundle] Adds panel pages
Browse files Browse the repository at this point in the history
Conflicts:

	src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig
  • Loading branch information
vicb committed Feb 6, 2012
1 parent 762d90d commit a440279
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -36,6 +36,7 @@ public function panelAction($token)
$profiler->disable();

$panel = $this->container->get('request')->query->get('panel', 'request');
$page = $this->container->get('request')->query->get('page', 'home');

if (!$profile = $profiler->loadProfile($token)) {
return $this->container->get('templating')->renderResponse('WebProfilerBundle:Profiler:info.html.twig', array('about' => 'no_token', 'token' => $token));
Expand All @@ -50,6 +51,7 @@ public function panelAction($token)
'profile' => $profile,
'collector' => $profile->getCollector($panel),
'panel' => $panel,
'page' => $page,
'templates' => $this->getTemplates($profiler),
));
}
Expand Down

0 comments on commit a440279

Please sign in to comment.