프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 get ( $path, $callback, $options = [] ) |