PHP Класс Webiny\Component\Router\Matcher\UrlMatcher

Наследование: use trait Webiny\Component\Http\HttpTrait, use trait Webiny\Component\StdLib\StdLibTrait
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
match ( UrlObject $url ) : array | boolean This method tries to match the given url against the route collection.

Приватные методы

Метод Описание
extractParameters ( $matches, CompiledRoute $compiledRoute ) : array Extracts and matches the parameters with their defined names.

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

match() публичный Метод

If match is successful, an array with callback and params is returned. If match is not successful, false is returned.
public match ( UrlObject $url ) : array | boolean
$url Webiny\Component\StdLib\StdObject\UrlObject\UrlObject
Результат array | boolean