Redirector
class Redirector (View source)
Properties
protected UrlGenerator | $generator | The URL generator instance. | |
protected Store | $session | The session store instance. |
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.
Create a new redirect response.
Get the URL generator instance.
Details
at line 30
void
__construct(UrlGenerator $generator)
Create a new Redirector instance.
at line 41
RedirectResponse
home(int $status = 302)
Create a new redirect response to the "home" route.
at line 53
RedirectResponse
back(int $status = 302, array $headers = [])
Create a new redirect response to the previous location.
at line 67
RedirectResponse
refresh(int $status = 302, array $headers = [])
Create a new redirect response to the current URI.
at line 81
RedirectResponse
guest(string $path, int $status = 302, array $headers = [], bool $secure = null)
Create a new redirect response, while putting the current URL in the session.
at line 97
RedirectResponse
intended(string $default = '/', int $status = 302, array $headers = [], bool $secure = null)
Create a new redirect response to the previously intended location.
at line 113
RedirectResponse
to(string $path, int $status = 302, array $headers = [], bool $secure = null)
Create a new redirect response to the given path.
at line 128
RedirectResponse
away(string $path, int $status = 302, array $headers = [])
Create a new redirect response to an external URL (no validation).
at line 141
RedirectResponse
secure(string $path, int $status = 302, array $headers = [])
Create a new redirect response to the given HTTPS path.
at line 155
RedirectResponse
route(string $route, array $parameters = [], int $status = 302, array $headers = [])
Create a new redirect response to a named route.
at line 171
RedirectResponse
action(string $action, array $parameters = [], int $status = 302, array $headers = [])
Create a new redirect response to a controller action.
at line 186
protected RedirectResponse
createRedirect(string $path, int $status, array $headers)
Create a new redirect response.
at line 204
UrlGenerator
getUrlGenerator()
Get the URL generator instance.