Skip to content

Commit

Permalink
fixed Controller::redirect must return the response
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar authored and fabpot committed Aug 14, 2010
1 parent 42c2aff commit 4ed65d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Symfony/Bundle/FrameworkBundle/Controller.php
Expand Up @@ -89,7 +89,9 @@ public function forward($controller, array $path = array(), array $query = array
*/
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;
}

/**
Expand Down

0 comments on commit 4ed65d0

Please sign in to comment.