Ver Fonte

[FrameworkBundle] Fixed undefined $response variable in ProfilerListener

John Wards há 14 anos atrás
pai
commit
c56a803b8a

+ 2 - 0
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;
         }