Class Router
Router
This class organizes, iterates, and dispatches \Slim\Route objects.
Namespace: Slim
Package: Slim
Author: Josh Lockhart
Since: 1.0.0
Located at thirdparty/Slim/Router.php
Package: Slim
Author: Josh Lockhart
Since: 1.0.0
Located at thirdparty/Slim/Router.php
public
|
|
public
|
#
getCurrentRoute( )
Get Current Route object or the first matched one if matching has been performed |
public
array[\Slim\Route]
|
#
getMatchedRoutes( string $httpMethod, string $resourceUri, boolean $reload = false )
Return route objects that match the given HTTP method and URI |
public
|
|
public
string
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
protected
|
$currentRoute | |
#
The current route (most recently dispatched) |
protected
array
|
$routes | |
#
Lookup hash of all route objects |
protected
array
|
$namedRoutes | |
#
Lookup hash of named route objects, keyed by route name (lazy-loaded) |
protected
array
|
$matchedRoutes | |
#
Array of route objects that match the request URI (lazy-loaded) |