From 109288e0609643ebb3cbcdd2babd518cca6ca87d Mon Sep 17 00:00:00 2001 From: Toni Uebernickel Date: Sun, 10 Oct 2010 13:43:54 +0200 Subject: [PATCH] [WebProfiler] use SafeDecorator on index fixes fatal error on /_profiler/:x-debug-token/request --- .../Bundle/WebProfilerBundle/Controller/ProfilerController.php | 2 +- .../Resources/views/Profiler/request_panel.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php index f270df922e3ac..50e0f3fa018f8 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php @@ -44,7 +44,7 @@ public function indexAction($token) return $this->container->get('templating')->renderResponse('WebProfilerBundle:Profiler:index.php', array( 'token' => $token, 'profiler' => new SafeDecorator($profiler), - 'collector' => $profiler->get('request'), + 'collector' => new SafeDecorator($profiler->get('request')), 'template' => $this->getTemplate($profiler, '_panel', 'request'), 'panel' => 'request', )); diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/request_panel.php b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/request_panel.php index be70e4c36c8ca..5d70058794d57 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/request_panel.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/request_panel.php @@ -42,7 +42,7 @@ Value - getSessionAttributes()->getRawValue() as $key => $value): ?> + getSessionAttributes() as $key => $value): ?>