You are here

public function ChainRouter::match in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/ChainRouter.php \Symfony\Cmf\Component\Routing\ChainRouter::match()

Loops through all routes and tries to match the passed url.

Note: You should use matchRequest if you can.

Overrides UrlMatcherInterface::match

File

vendor/symfony-cmf/routing/ChainRouter.php, line 143

Class

ChainRouter
The ChainRouter allows to combine several routers to try in a defined order.

Namespace

Symfony\Cmf\Component\Routing

Code

public function match($url) {
  return $this
    ->doMatch($url);
}