From 4ed65d026ed5960ae3d41e58af5f35a0aeba8352 Mon Sep 17 00:00:00 2001 From: ornicar Date: Sat, 14 Aug 2010 22:49:35 +0200 Subject: [PATCH] fixed Controller::redirect must return the response --- src/Symfony/Bundle/FrameworkBundle/Controller.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller.php b/src/Symfony/Bundle/FrameworkBundle/Controller.php index 366967d3b2..2d47ef41b3 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller.php @@ -89,7 +89,9 @@ class Controller implements \ArrayAccess */ public function redirect($url, $status = 302) { - return $this->container->get('response')->setRedirect($url, $status); + $response = $this->container->get('response'); + $response->setRedirect($url, $status); + return $response; } /**