You are here

public function ChainRouter::matchRequest 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::matchRequest()

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

Overrides RequestMatcherInterface::matchRequest

File

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

Class

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

Namespace

Symfony\Cmf\Component\Routing

Code

public function matchRequest(Request $request) {
  return $this
    ->doMatch($request
    ->getPathInfo(), $request);
}