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