PHP Class Roller\RouteSet

Inheritance: implements Iterato\Iterator
Afficher le fichier Open project: c9s/roller

Méthodes publiques

Свойство Type Description
$before
$i
$routes
$routesMap

Méthodes publiques

Méthode Description
__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 ( )

Méthodes protégées

Méthode Description
_buildRoute ( $path, $callback, $options = [] ) using pure php to build route

Method Details

__call() public méthode

public __call ( $m, $a )

__set_state() static public méthode

interface for loading cache from source
static public __set_state ( $data )

_buildRoute() protected méthode

using pure php to build route
protected _buildRoute ( $path, $callback, $options = [] )

add() public méthode

Path rule Add method, an alias from any() method
public add ( string $path, mixed $callback, array $options = [] )
$path string
$callback mixed
$options array

any() public méthode

Add path rule with *ANY* request method
public any ( string $path, mixed $callback, array $options = [] )
$path string
$callback mixed
$options array

compile() public méthode

xxx: write this in extension to improve compile time performance.
public compile ( )

current() public méthode

interface for iterating *
public current ( )

findRouteByPath() public méthode

find route by route path
public findRouteByPath ( string $path )
$path string

get() public méthode

__call magic is always slow than methods
public get ( $path, $callback, $options = [] )

getAnnotationReader() public méthode

public getAnnotationReader ( )

getRoute() public méthode

get route by route name
public getRoute ( $name )

importAnnotationFromReflectionMethod() public méthode

public importAnnotationFromReflectionMethod ( ReflectionMethod $reflMethod )
$reflMethod ReflectionMethod

importAnnotationMethods() public méthode

public importAnnotationMethods ( $class, $methods = null )

key() public méthode

public key ( )

mount() public méthode

xxx: write this in extension.
public mount ( $prefix, RouteSet $routes )
$routes RouteSet

next() public méthode

public next ( )

post() public méthode

public post ( $path, $callback, $options = [] )

rewind() public méthode

public rewind ( )

valid() public méthode

public valid ( )

Property Details

$before public_oe property

public $before

$i public_oe property

public $i

$routes public_oe property

public $routes

$routesMap public_oe property

public $routesMap