PHP Interface Neos\Flow\Mvc\Routing\RouterInterface

Exibir arquivo Open project: neos/flow-development-collection Interface Usage Examples

Public Methods

Method Description
resolve ( array $routeValues ) : string Walks through all configured routes and calls their respective resolves-method.
route ( Request $httpRequest ) : array Iterates through all configured routes and calls matches() on them.

Method Details

resolve() public method

When a matching route is found, the corresponding URI is returned.
public resolve ( array $routeValues ) : string
$routeValues array
return string URI

route() public method

Returns the matchResults of the matching route or NULL if no matching route could be found.
public route ( Request $httpRequest ) : array
$httpRequest Neos\Flow\Http\Request
return array The results of the matching route or NULL if no route matched