Drupal-specific URL Matcher; handles the Drupal "system path" mapping.
Expanded class hierarchy of UrlMatcher
class UrlMatcher extends BaseUrlMatcher {
/**
* Constructs a new UrlMatcher.
*
* The parent class has a constructor we need to skip, so just override it
* with a no-op.
*/
public function __construct() {
}
public function finalMatch(RouteCollection $collection, Request $request) {
$this->routes = $collection;
$context = new RequestContext();
$context
->fromRequest($request);
$this
->setContext($context);
return $this
->match('/' . $request->attributes
->get('system_path'));
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UrlMatcher:: |
protected | property | ||
UrlMatcher:: |
protected | property | ||
UrlMatcher:: |
protected | property | ||
UrlMatcher:: |
public | function |
Matches a request against a route collection and returns exactly one result. Overrides UrlMatcher:: |
|
UrlMatcher:: |
protected | function |
Returns an array of values to use as request attributes. Overrides UrlMatcher:: |
|
UrlMatcher:: |
public | function |
Gets the request context. Overrides RequestContextAwareInterface:: |
|
UrlMatcher:: |
protected | function | Handles specific route requirements. | 1 |
UrlMatcher:: |
public | function |
Tries to match a URL path with a set of routes. Overrides UrlMatcherInterface:: |
5 |
UrlMatcher:: |
protected | function | Tries to match a URL with a set of routes. | 1 |
UrlMatcher:: |
protected | function | Get merged default parameters. | |
UrlMatcher:: |
constant | |||
UrlMatcher:: |
constant | |||
UrlMatcher:: |
constant | |||
UrlMatcher:: |
public | function |
Sets the request context. Overrides RequestContextAwareInterface:: |
|
UrlMatcher:: |
public | function |
Constructs a new UrlMatcher. Overrides UrlMatcher:: |