Метод |
Описание |
|
__call ( $m, $a ) |
|
|
__set_state ( $data ) |
interface for loading cache from source |
|
add ( string $path, mixed $callback, array $options = [] ) |
Path rule Add method,
an alias from any() method |
|
any ( string $path, mixed $callback, array $options = [] ) |
Add path rule with *ANY* request method |
|
compile ( ) |
xxx: write this in extension to improve compile time performance. |
|
current ( ) |
interface for iterating * |
|
findRouteByPath ( string $path ) |
find route by route path |
|
get ( $path, $callback, $options = [] ) |
__call magic is always slow than methods |
|
getAnnotationReader ( ) |
|
|
getRoute ( $name ) |
get route by route name |
|
importAnnotationFromReflectionMethod ( ReflectionMethod $reflMethod ) |
|
|
importAnnotationMethods ( $class, $methods = null ) |
|
|
key ( ) |
|
|
mount ( $prefix, RouteSet $routes ) |
xxx: write this in extension. |
|
next ( ) |
|
|
post ( $path, $callback, $options = [] ) |
|
|
rewind ( ) |
|
|
valid ( ) |
|
|