RouteRedirect
class \
A value object representing redirects within Backend routing.
Table of Contents
Methods
- create() : self
- createFromRequest() : self|null
- createFromRoute() : self
- getFormattedParameters() : string
- getName() : string
- getParameters() : array
- hasParameters() : bool
- resolve() : void
- Checks if the route can be resolved as a redirect.
Methods
create()
public
static create(string $name, mixed $params) : self
Parameters
- $name : string
- $params : mixed
Return values
selfcreateFromRequest()
public
static createFromRequest(ServerRequestInterface $request) : self|null
Parameters
- $request : ServerRequestInterface
Return values
self|nullcreateFromRoute()
public
static createFromRoute(Route $route, array $parameters) : self
Parameters
- $route : Route
- $parameters : array
Return values
selfgetFormattedParameters()
public
getFormattedParameters() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetParameters()
public
getParameters() : array
Return values
arrayhasParameters()
public
hasParameters() : bool
Return values
boolresolve()
Checks if the route can be resolved as a redirect.
public
resolve(Router $router) : void
Parameters
- $router : Router