Свойство | Тип | Описание | |
---|---|---|---|
$cache | * boolean, is cache enabled ? | ||
$cacheDir | cache directory | ||
$cacheExpiry | cache exxpiry | ||
$cacheId | cache id | ||
$extensionSupport | |||
$hasCache | is cache found ? | ||
$matchedRouteClass | |||
$plugins | plugins | ||
$reload | should we reload cache ? (not implemented yet) | ||
$routes |
Метод | Описание | |
---|---|---|
__call ( $m, $a ) | dispatch methods to plugins (mixin) and routeset methods | |
__construct ( $routes = null, $options = [] ) | ||
add ( $path, $callback, $options = [] ) | ||
addPlugin ( $plugin ) | ||
any ( $path, $callback, $options = [] ) | ||
dispatch ( $path ) | ||
get ( $path, $callback, $options = [] ) | We define get, post, any methods because __call is slower (2 times) | |
mount ( $prefix, $routeset ) | ||
post ( $path, $callback, $options = [] ) |
Метод | Описание | |
---|---|---|
makeCache ( ) |
public __call ( $m, $a ) |
public get ( $path, $callback, $options = [] ) |