Property | Type | Description | |
---|---|---|---|
$middleware |
Property | Type | Description | |
---|---|---|---|
$methods | Allowed HTTP Methods. Restricted to only common ones, for security reasons. * | ||
$routes |
Method | Description | |
---|---|---|
addRoute ( $params ) | Add a new route to the configured list of routes | |
attach ( ) | Add a new middleware to the list of middlewares | |
getRequestMethod ( ) | Get lower-cased representation of current HTTP Request method | |
route ( $uri = null ) |
Method | Description | |
---|---|---|
invoke_callback ( $callback, $params ) | Main reason this is a separate function is: in case library users want to change invokation logic, without having to copy/paste rest of the logic in the route() function. | |
invoke_options ( ) |
Method | Description | |
---|---|---|
getRoutes ( $all = false ) | Please note this method is performance-optimized to only return routes for current type of HTTP method |
public addRoute ( $params ) |
public static getRequestMethod ( ) |
protected invoke_callback ( $callback, $params ) |
protected static $methods |