From c56a803b8a34e55774ae50084b7298e644115496 Mon Sep 17 00:00:00 2001 From: John Wards Date: Thu, 17 Mar 2011 22:39:02 +0000 Subject: [PATCH] [FrameworkBundle] Fixed undefined $response variable in ProfilerListener --- .../Bundle/FrameworkBundle/Profiler/ProfilerListener.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php b/src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php index eff7626475..19207443d2 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php +++ b/src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php @@ -79,6 +79,8 @@ class ProfilerListener */ public function filterCoreResponse(FilterResponseEvent $event) { + $response = $event->getResponse(); + if (null !== $this->matcher && !$this->matcher->matches($event->getRequest())) { return $response; }