It expects a route path parameter.
By default, the response status code is 301.
If the route empty, the status code will be 410.
If the permanent path parameter is set, the status code will be 302.
public redirectAction ( string $route, boolean $permanent = false ) : |
||
$route | string | The route pattern to redirect to |
$permanent | boolean | Whether the redirect is permanent or not |
Résultat | A Response instance |