Procházet zdrojové kódy

[FrameworkBundle] Fixed undefined $response variable in ProfilerListener

John Wards před 14 roky
rodič
revize
c56a803b8a

+ 2 - 0
src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php

@@ -79,6 +79,8 @@ class ProfilerListener
      */
      */
     public function filterCoreResponse(FilterResponseEvent $event)
     public function filterCoreResponse(FilterResponseEvent $event)
     {
     {
+        $response = $event->getResponse();
+
         if (null !== $this->matcher && !$this->matcher->matches($event->getRequest())) {
         if (null !== $this->matcher && !$this->matcher->matches($event->getRequest())) {
             return $response;
             return $response;
         }
         }