PHP Interface Autarky\Routing\RoutePathGeneratorInterface

Datei anzeigen Open project: autarky/framework Interface Usage Examples

Public Methods

Method Description
getRoutePath ( Route $route, array $params ) : string Generate the path (relative URL) for a route.
setValidateParams ( boolean $validateParams ) Set whether the regex pattern of route parameters should be validated on runtime.

Method Details

getRoutePath() public method

Generate the path (relative URL) for a route.
public getRoutePath ( Route $route, array $params ) : string
$route Route
$params array
return string

setValidateParams() public method

Set whether the regex pattern of route parameters should be validated on runtime.
public setValidateParams ( boolean $validateParams )
$validateParams boolean