BestUrlMatcher extends UrlMatcher

Internal

Table of Contents

Methods

matchCollection()  : array<string|int, mixed>
preMatchCollection()  : array<int, MatchedRoute>
Tries to match a URL with a set of routes.
sortMatchedRoutes()  : int
Sorts the best matching route result to the beginning

Methods

matchCollection()

protected matchCollection(string $pathinfo, RouteCollection $routes) : array<string|int, mixed>
Parameters
$pathinfo : string
$routes : RouteCollection
Return values
array<string|int, mixed>

preMatchCollection()

Tries to match a URL with a set of routes.

protected preMatchCollection(string $pathinfo, RouteCollection $routes) : array<int, MatchedRoute>

Basically all code has been duplicated from UrlMatcher::matchCollection, the difference is it does not just return the first match, but return all possible matches for further reduction.

Parameters
$pathinfo : string

The path info to be parsed

$routes : RouteCollection
Return values
array<int, MatchedRoute>

        
On this page

Search results