$routes
$routes : array
Router class.
$currentRoute : \Quark\Router\Route
__construct(\Quark\Router\RouteCollection $collection)
Creates an instance of Router.
\Quark\Router\RouteCollection | $collection | Route collection. |
matchCurrentRequest() : \Quark\Router\Route|null
Match current request.
Matched route.
match(string $requestUrl, string $requestMethod = \Fig\Http\Message\RequestMethodInterface::METHOD_GET) : \Quark\Router\Route|null
Match a request URL/methods.
string | $requestUrl | Request URL. |
string | $requestMethod | Request method. |
Matched route.
parseConfig(array $config = array()) : \Quark\Router\Router
Parse configuration.
array | $config | Configuration. |