Redirector
class Redirector (View source)
Methods
Create a new redirect response to the "home" route.
Create a new redirect response to the previous location.
Create a new redirect response to the current URI.
Create a new redirect response, while putting the current URL in the session.
Create a new redirect response to the previously intended location.
Create a new redirect response to the given path.
Create a new redirect response to an external URL (no validation).
Create a new redirect response to the given HTTPS path.
Create a new redirect response to a named route.
Create a new redirect response to a controller action.
Get the URL generator instance.
Details
at line line 41
RedirectResponse
home(
int $status = 302)
Create a new redirect response to the "home" route.
at line line 53
RedirectResponse
back(
int $status = 302,
array $headers = array())
Create a new redirect response to the previous location.
at line line 67
RedirectResponse
refresh(
int $status = 302,
array $headers = array())
Create a new redirect response to the current URI.
at line line 81
RedirectResponse
guest(
string $path,
int $status = 302,
array $headers = array(),
bool $secure = null)
Create a new redirect response, while putting the current URL in the session.
at line line 97
RedirectResponse
intended(
string $default = '/',
int $status = 302,
array $headers = array(),
bool $secure = null)
Create a new redirect response to the previously intended location.
at line line 113
RedirectResponse
to(
string $path,
int $status = 302,
array $headers = array(),
bool $secure = null)
Create a new redirect response to the given path.
at line line 128
RedirectResponse
away(
string $path,
int $status = 302,
array $headers = array())
Create a new redirect response to an external URL (no validation).
at line line 141
RedirectResponse
secure(
string $path,
int $status = 302,
array $headers = array())
Create a new redirect response to the given HTTPS path.
at line line 155
RedirectResponse
route(
string $route,
array $parameters = array(),
int $status = 302,
array $headers = array())
Create a new redirect response to a named route.
at line line 171
RedirectResponse
action(
string $action,
array $parameters = array(),
int $status = 302,
array $headers = array())
Create a new redirect response to a controller action.