Default route that modifies the response type based on an extension applied to the route path.

For example, "test/index.json" will return a response type of json. If a match is found, the extension is stripped off so subsequent rules won't receive it. Using the example above, it would return a route path of "test/index".

This class never returns a route match with a controller and action specified.

package XenForo_Mvc

 Methods

Attempts to match the routing path.

match(string $routePath, \Zend_Controller_Request_Http $request, \XenForo_Router $router) : false | \XenForo_RouteMatch

See XenForo_Route_Interface for further details.

Parameters

$routePath

string

Routing path

$request

\Zend_Controller_Request_Http

Request object

$router

\XenForo_Router

Routing object

Returns