public function UrlMatcher::match in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Matcher/UrlMatcher.php \Symfony\Component\Routing\Matcher\UrlMatcher::match()
Tries to match a URL path with a set of routes.
If the matcher can not find information, it must throw one of the exceptions documented below.
Parameters
string $pathinfo The path info to be parsed (raw format, i.e. not urldecoded):
Return value
array An array of parameters
Throws
ResourceNotFoundException If the resource could not be found
MethodNotAllowedException If the resource was found but the request method is not allowed
Overrides UrlMatcherInterface::match
6 calls to UrlMatcher::match()
- ApacheUrlMatcher::match in vendor/
symfony/ routing/ Matcher/ ApacheUrlMatcher.php - Tries to match a URL based on Apache mod_rewrite matching.
- RedirectableUrlMatcher::match in vendor/
symfony/ routing/ Matcher/ RedirectableUrlMatcher.php - Tries to match a URL path with a set of routes.
- TraceableUrlMatcher::getTraces in vendor/
symfony/ routing/ Matcher/ TraceableUrlMatcher.php - UrlMatcher::finalMatch in core/
lib/ Drupal/ Core/ Routing/ UrlMatcher.php - Matches a request against a route collection and returns exactly one result.
- UrlMatcher::finalMatch in vendor/
symfony-cmf/ routing/ NestedMatcher/ UrlMatcher.php - Matches a request against a route collection and returns exactly one result.
5 methods override UrlMatcher::match()
- ApacheUrlMatcher::match in vendor/
symfony/ routing/ Matcher/ ApacheUrlMatcher.php - Tries to match a URL based on Apache mod_rewrite matching.
- ProjectUrlMatcher::match in vendor/
symfony/ routing/ Tests/ Fixtures/ dumper/ url_matcher1.php - Tries to match a URL path with a set of routes.
- ProjectUrlMatcher::match in vendor/
symfony/ routing/ Tests/ Fixtures/ dumper/ url_matcher3.php - Tries to match a URL path with a set of routes.
- ProjectUrlMatcher::match in vendor/
symfony/ routing/ Tests/ Fixtures/ dumper/ url_matcher2.php - Tries to match a URL path with a set of routes.
- RedirectableUrlMatcher::match in vendor/
symfony/ routing/ Matcher/ RedirectableUrlMatcher.php - Tries to match a URL path with a set of routes.
File
- vendor/
symfony/ routing/ Matcher/ UrlMatcher.php, line 88
Class
- UrlMatcher
- UrlMatcher matches URL based on a set of routes.
Namespace
Symfony\Component\Routing\MatcherCode
public function match($pathinfo) {
$this->allow = array();
if ($ret = $this
->matchCollection(rawurldecode($pathinfo), $this->routes)) {
return $ret;
}
throw 0 < count($this->allow) ? new MethodNotAllowedException(array_unique($this->allow)) : new ResourceNotFoundException(sprintf('No routes found for "%s".', $pathinfo));
}