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

Moved the "reboot" call after the request is handled; this permits the setting of test fixtures and cleans up the kernel after the request.

Nicolas A. Bérard-Nault пре 14 година
родитељ
комит
2cf3e4ed07
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/Symfony/Bundle/FrameworkBundle/Client.php

+ 2 - 1
src/Symfony/Bundle/FrameworkBundle/Client.php

@@ -87,9 +87,10 @@ class Client extends BaseClient
      */
     protected function doRequest($request)
     {
+        $returnValue = $this->kernel->handle($request);
         $this->kernel->reboot();
 
-        return $this->kernel->handle($request);
+        return $returnValue;
     }
 
     /**