Преглед изворни кода

[Foundation] fixed request value when passed to the handle method

Fabien Potencier пре 15 година
родитељ
комит
d9e444b440
2 измењених фајлова са 8 додато и 0 уклоњено
  1. 4 0
      src/Symfony/Foundation/Kernel.php
  2. 4 0
      src/Symfony/Foundation/bootstrap.php

+ 4 - 0
src/Symfony/Foundation/Kernel.php

@@ -140,6 +140,10 @@ abstract class Kernel implements \Serializable
     {
       $request = $this->container->getRequestService();
     }
+    else
+    {
+      $this->container->setService('request', $request);
+    }
 
     return $this->container->getRequestHandlerService()->handle($request);
   }

+ 4 - 0
src/Symfony/Foundation/bootstrap.php

@@ -416,6 +416,10 @@ abstract class Kernel implements \Serializable
     {
       $request = $this->container->getRequestService();
     }
+    else
+    {
+      $this->container->setService('request', $request);
+    }
 
     return $this->container->getRequestHandlerService()->handle($request);
   }