RouteRedirect
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<string|int, mixed>
- 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<string|int, mixed> $parameters) : self
Parameters
- $route : Route
- $parameters : array<string|int, mixed>
Return values
selfgetFormattedParameters()
public
getFormattedParameters() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetParameters()
public
getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>hasParameters()
public
hasParameters() : bool
Return values
boolresolve()
Checks if the route can be resolved as a redirect.
public
resolve(Router $router) : void
Parameters
- $router : Router