Symfony\Bundle\FrameworkBundle\Controller\Controller::redirect
Returns a RedirectResponse to the given URL.
Signature
public function redirect(string
$url,
[integer
$status = 302] )
Parameters
$url
— string- The URL to redirect to
$status
— integer- The status code to use for the Response
Returns
- RedirectResponse