From 93dfdc79a32041626ff51462a9b616ab7d6ee1bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20A=2E=20B=C3=A9rard-Nault?= Date: Thu, 21 Oct 2010 11:29:41 -0400 Subject: [PATCH] Moved the "reboot" call after the request is handled; this permits the setting of test fixtures and cleans up the kernel after the request. --- src/Symfony/Bundle/FrameworkBundle/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Client.php b/src/Symfony/Bundle/FrameworkBundle/Client.php index d86217acdf91a..c85b9388c7298 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Client.php +++ b/src/Symfony/Bundle/FrameworkBundle/Client.php @@ -87,9 +87,10 @@ public function getProfiler() */ protected function doRequest($request) { + $returnValue = $this->kernel->handle($request); $this->kernel->reboot(); - return $this->kernel->handle($request); + return $returnValue; } /**