Преглед на файлове

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;
     }
 
     /**