[WebProfilerBundle] Adds panel pages
Conflicts: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig
This commit is contained in:
parent
762d90d859
commit
a440279e5f
@ -36,6 +36,7 @@ class ProfilerController extends ContainerAware
|
||||
$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 @@ class ProfilerController extends ContainerAware
|
||||
'profile' => $profile,
|
||||
'collector' => $profile->getCollector($panel),
|
||||
'panel' => $panel,
|
||||
'page' => $page,
|
||||
'templates' => $this->getTemplates($profiler),
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user