Router
in package
Uses
EnumResolverTrait
The Router class responsability is to analyze the path of the request, determine the controller that has to process it and enroute the request to the corresponding controller.
Tags
Table of Contents
__construct() | Constructor. | : mixed |
---|---|---|
closeCommerce() | This method enroutes the request to close commerce controller and executes it. | : void |
error() | This method enroutes the request to error controller and executes it. | : void |
getRoute() | This method returns the request url info in a Route object. | : Route |
notFound() | This method enroutes the request to the not found controller and executes it. | : void |
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $apps = [] ]) : mixed
Parameters
- $apps : array<string|int, mixed> = []
-
List of the Apps associated to the commerce.
Return values
mixed —closeCommerce()
This method enroutes the request to close commerce controller and executes it.
public
closeCommerce([array<string|int, mixed> $data = [] ]) : void
Parameters
- $data : array<string|int, mixed> = []
Return values
void —error()
This method enroutes the request to error controller and executes it.
public
error([array<string|int, mixed> $data = [] ]) : void
Parameters
- $data : array<string|int, mixed> = []
Return values
void —getRoute()
This method returns the request url info in a Route object.
public
getRoute() : Route
Return values
Route —notFound()
This method enroutes the request to the not found controller and executes it.
public
notFound([int $status = 404 ]) : void
Parameters
- $status : int = 404