Attempts to parse a request object and determine its execution details.
public parse ( |
||
$request | A request object containing the details of the request to be routed. | |
$options | array | Used to determine the operation of the method, and override certain values in the `Request` object: - `'url'` _string_: If present, will be used to match in place of the `$url` property of `$request`. |
return | object | boolean | If this route matches `$request`, returns the request with execution details attached to it (inside `Request::$params`). Alternatively when a route handler function was used, returns the result of its invocation. Returns `false` if the route never matched. |