‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Routing\BestUrlMatcher Class Reference
Inheritance diagram for TYPO3\CMS\Core\Routing\BestUrlMatcher:

Protected Member Functions

 matchCollection (string $pathinfo, SymfonyRouteCollection $routes)
 
list< MatchedRoutepreMatchCollection (string $pathinfo, SymfonyRouteCollection $routes)
 
 sortMatchedRoutes (MatchedRoute $a, MatchedRoute $b)
 

Detailed Description

Definition at line 28 of file BestUrlMatcher.php.

Member Function Documentation

◆ matchCollection()

TYPO3\CMS\Core\Routing\BestUrlMatcher::matchCollection ( string  $pathinfo,
SymfonyRouteCollection  $routes 
)
protected

◆ preMatchCollection()

list<MatchedRoute> TYPO3\CMS\Core\Routing\BestUrlMatcher::preMatchCollection ( string  $pathinfo,
SymfonyRouteCollection  $routes 
)
protected

Tries to match a URL with a set of routes. 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
string$pathinfo‪The path info to be parsed
Returns
‪list<MatchedRoute>

Definition at line 52 of file BestUrlMatcher.php.

Referenced by TYPO3\CMS\Core\Routing\BestUrlMatcher\matchCollection().

◆ sortMatchedRoutes()

TYPO3\CMS\Core\Routing\BestUrlMatcher::sortMatchedRoutes ( MatchedRoute  $a,
MatchedRoute  $b 
)
protected