PHP Interface Autarky\Routing\RoutePathGeneratorInterface

Afficher le fichier Open project: autarky/framework Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

setValidateParams() public méthode

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