Просмотр исходного кода

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 лет назад
Родитель
Сommit
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;
     }
 
     /**