Class Routes
A route collection.
- ICanBoogie\Routing\Routes implements IteratorAggregate, ArrayAccess
Methods summary
public
find( string $uri
, array|null & $captured
= null, string $method
= Request::METHOD_ANY, string $namespace
= null )
: ICanBoogie\Routing\Route
|false|null
Search for a route matching the specified pathname and method.
Magic methods summary
public
any( void )
: ICanBoogie\Routing\Routes
any(string $pattern, $controller, array $options=[]) Add a route for any HTTP method.
public
connect( void )
: ICanBoogie\Routing\Routes
connect(string $pattern, $controller, array $options=[]) Add a route for the HTTP method CONNECT.
public
delete( void )
: ICanBoogie\Routing\Routes
delete(string $pattern, $controller, array $options=[]) Add a route for the HTTP method DELETE.
public
get( void )
: ICanBoogie\Routing\Routes
get(string $pattern, $controller, array $options=[]) Add a route for the HTTP method GET.
public
head( void )
: ICanBoogie\Routing\Routes
head(string $pattern, $controller, array $options=[]) Add a route for the HTTP method HEAD.
public
options( void )
: ICanBoogie\Routing\Routes
options(string $pattern, $controller, array $options=[]) Add a route for the HTTP method OPTIONS.
public
post( void )
: ICanBoogie\Routing\Routes
post(string $pattern, $controller, array $options=[]) Add a route for the HTTP method POST.
public
put( void )
: ICanBoogie\Routing\Routes
put(string $pattern, $controller, array $options=[]) Add a route for the HTTP method PUT.
public
patch( void )
: ICanBoogie\Routing\Routes
patch(string $pattern, $controller, array $options=[]) Add a route for the HTTP method PATCH
public
trace( void )
: ICanBoogie\Routing\Routes
trace(string $pattern, $controller, array $options=[]) Add a route for the HTTP method TRACE.