Redirector
Uses
Properties
Methods
__construct ( UrlGenerator $generator ) : void
Create a new Redirector instance.
Parameters
- $generator UrlGenerator
home ( $status ) : RedirectResponse
Create a new redirect response to the "home" route.
Parameters
- $status int
back ( $status , $headers , $fallback ) : RedirectResponse
Create a new redirect response to the previous location.
Parameters
- $status int
- $headers array
- $fallback mixed
refresh ( $status , $headers ) : RedirectResponse
Create a new redirect response to the current URI.
Parameters
- $status int
- $headers array
guest ( $path , $status , $headers , $secure ) : RedirectResponse
Create a new redirect response, while putting the current URL in the session.
Parameters
- $path string
- $status int
- $headers array
- $secure bool|null
intended ( $default , $status , $headers , $secure ) : RedirectResponse
Create a new redirect response to the previously intended location.
Parameters
- $default string
- $status int
- $headers array
- $secure bool|null
setIntendedUrl ( $url ) : void
Set the intended url.
Parameters
- $url string
to ( $path , $status , $headers , $secure ) : RedirectResponse
Create a new redirect response to the given path.
Parameters
- $path string
- $status int
- $headers array
- $secure bool|null
away ( $path , $status , $headers ) : RedirectResponse
Create a new redirect response to an external URL (no validation).
Parameters
- $path string
- $status int
- $headers array
secure ( $path , $status , $headers ) : RedirectResponse
Create a new redirect response to the given HTTPS path.
Parameters
- $path string
- $status int
- $headers array
route ( $route , $parameters , $status , $headers ) : RedirectResponse
Create a new redirect response to a named route.
Parameters
- $route string
- $parameters mixed
- $status int
- $headers array
signedRoute ( $route , $parameters , $expiration , $status , $headers ) : RedirectResponse
Create a new redirect response to a signed named route.
Parameters
- $route string
- $parameters mixed
- $expiration DateTimeInterface |DateInterval |int|null
- $status int
- $headers array
temporarySignedRoute ( $route , $expiration , $parameters , $status , $headers ) : RedirectResponse
Create a new redirect response to a signed named route.
Parameters
- $route string
- $expiration DateTimeInterface |DateInterval |int|null
- $parameters mixed
- $status int
- $headers array
action ( $action , $parameters , $status , $headers ) : RedirectResponse
Create a new redirect response to a controller action.
Parameters
- $action string|array
- $parameters mixed
- $status int
- $headers array
createRedirect ( $path , $status , $headers ) : RedirectResponse
Create a new redirect response.
Parameters
- $path string
- $status int
- $headers array