You are here

public function UrlMatcherInterface::match in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Matcher/UrlMatcherInterface.php \Symfony\Component\Routing\Matcher\UrlMatcherInterface::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

5 methods override UrlMatcherInterface::match()
AccessAwareRouterInterface::match in core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php
ChainRouter::match in vendor/symfony-cmf/routing/ChainRouter.php
Loops through all routes and tries to match the passed url.
DynamicRouter::match in vendor/symfony-cmf/routing/DynamicRouter.php
Tries to match a URL path with a set of routes.
Router::match in vendor/symfony/routing/Router.php
Tries to match a URL path with a set of routes.
UrlMatcher::match in vendor/symfony/routing/Matcher/UrlMatcher.php
Tries to match a URL path with a set of routes.

File

vendor/symfony/routing/Matcher/UrlMatcherInterface.php, line 38

Class

UrlMatcherInterface
UrlMatcherInterface is the interface that all URL matcher classes must implement.

Namespace

Symfony\Component\Routing\Matcher

Code

public function match($pathinfo);