From a440279e5f7a387dc1bbfea46ed11017440cca00 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Sun, 29 Jan 2012 11:27:03 +0100 Subject: [PATCH] [WebProfilerBundle] Adds panel pages Conflicts: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig --- .../Bundle/WebProfilerBundle/Controller/ProfilerController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php index d380e319f9e0..d6235025d001 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php @@ -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)); @@ -50,6 +51,7 @@ public function panelAction($token) 'profile' => $profile, 'collector' => $profile->getCollector($panel), 'panel' => $panel, + 'page' => $page, 'templates' => $this->getTemplates($profiler), )); }