RouterFactory
in package

This factory has the function of concentrating the logic of creating the different Routes that will not arrive from the API

The function GetType from Route class check if the type is a correct value, if you create a new type you must create a new CONST in FWK\Enums\RouteType

Tags
see
RouteType
see
RouterFactory::routeError()
see
RouterFactory::routeNotFound()
see
RouterFactory::routeApp()
see
RouterFactory::routeInternal()
see
RouterFactory::routeInternalUtil()
see
Router

Table of Contents

routeApp() This method creates and returns a new Route with the default values that an App Route needs.  : Route
routeCloseCommerce() This method creates and returns a new Route with the default values that an close coommerce Route needs.  : Route
routeError() This method creates and returns a new Route with the default values that an Error Route needs.  : Route
routeInternal() This method creates and returns a new Route with the default values that an Internal Route needs.  : Route
routeInternalUtil() This method creates and returns a new Route with the default values that an InternalUtil Route needs.  : Route
routeNotFound() This method creates and returns a new Route with the default values that a NotFound Route needs.  : Route

Methods

routeApp()

This method creates and returns a new Route with the default values that an App Route needs.

public static routeApp() : Route
Return values
Route

routeCloseCommerce()

This method creates and returns a new Route with the default values that an close coommerce Route needs.

public static routeCloseCommerce() : Route
Return values
Route

routeError()

This method creates and returns a new Route with the default values that an Error Route needs.

public static routeError() : Route
Return values
Route

routeInternal()

This method creates and returns a new Route with the default values that an Internal Route needs.

public static routeInternal(string $controller, string $class) : Route
Parameters
$controller : string
$class : string
Return values
Route

routeInternalUtil()

This method creates and returns a new Route with the default values that an InternalUtil Route needs.

public static routeInternalUtil(string $controller, string $class) : Route
Parameters
$controller : string
$class : string
Return values
Route

routeNotFound()

This method creates and returns a new Route with the default values that a NotFound Route needs.

public static routeNotFound([int $status = 404 ]) : Route
Parameters
$status : int = 404
Return values
Route

Search results