PHP Class Autarky\Routing\RoutePathGenerator

Inheritance: implements Autarky\Routing\RoutePathGeneratorInterface
Datei anzeigen Open project: autarky/framework

Protected Properties

Property Type Description
$routeParser FastRoute\RouteParser
$validateParams boolean Whether the regex pattern of route parameters should be validated on runtime.

Public Methods

Method Description
__construct ( FastRoute\RouteParser $routeParser, $validateParams = false )
getRoutePath ( Route $route, array $params )
setValidateParams ( boolean $validateParams ) Set whether the regex pattern of route parameters should be validated on runtime.

Method Details

__construct() public method

public __construct ( FastRoute\RouteParser $routeParser, $validateParams = false )
$routeParser FastRoute\RouteParser

getRoutePath() public method

public getRoutePath ( Route $route, array $params )
$route Route
$params array

setValidateParams() public method

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

Property Details

$routeParser protected_oe property

protected RouteParser,FastRoute $routeParser
return FastRoute\RouteParser

$validateParams protected_oe property

Whether the regex pattern of route parameters should be validated on runtime.
protected bool $validateParams
return boolean