PHP Интерфейс Neos\Flow\Mvc\Routing\RouterInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.

Описание методов

resolve() публичный метод

When a matching route is found, the corresponding URI is returned.
public resolve ( array $routeValues ) : string
$routeValues array
Результат string URI

route() публичный метод

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
Результат array The results of the matching route or NULL if no route matched