PageUriMatcher

class \TYPO3\CMS\Core\Routing\PageUriMatcher

Internal class, which is similar to Symfony's Urlmatcher but without validating - conditions / expression language - host matches - method checks because this method only works in conjunction with PageRouter.

Table of Contents

Properties

$mappableProcessor  : MappableProcessor
$routes  : RouteCollection<string, Route>

Methods

__construct()  : mixed
match()  : array
Matches a path segment against the route collection
getAttributes()  : array
Returns an array of values to use as request attributes.
getDecoratedRoutePath()  : string|null
Resolves an optional route specific decorated route path that has been assigned by DecoratingEnhancerInterface instances.
matchCollection()  : array
Tries to match a URL with a set of routes.
mergeDefaults()  : array
Get merged default parameters.

Properties

Methods

match()

Matches a path segment against the route collection

public match(string $urlPath) : array

Parameters

$urlPath : string

Tags

throws
ResourceNotFoundException

Return values

array

getAttributes()

Returns an array of values to use as request attributes.

protected getAttributes(Route $route, string $name, array $attributes) : array

As this method requires the Route object, it is not available in matchers that do not have access to the matched Route instance (like the PHP and Apache matcher dumpers).

Parameters

$route : Route

The route we are matching against

$name : string

The name of the route

$attributes : array

An array of attributes from the matcher

Return values

array —

An array of parameters

getDecoratedRoutePath()

Resolves an optional route specific decorated route path that has been assigned by DecoratingEnhancerInterface instances.

protected getDecoratedRoutePath(Route $route) : string|null

Parameters

$route : Route

Return values

string|null

matchCollection()

Tries to match a URL with a set of routes.

protected matchCollection(string $urlPath, RouteCollection<string, Route> $routes) : array

Parameters

$urlPath : string

The path info to be parsed

$routes : RouteCollection<string, Route>

The set of routes

Return values

array —

An array of parameters

mergeDefaults()

Get merged default parameters.

protected mergeDefaults(array $params, array $defaults) : array

Parameters

$params : array

The parameters

$defaults : array

The defaults

Return values

array —

Merged default parameters

On this page